1234567891011121314151617181920212223 |
- <?php
- namespace app\service;
- use app\model\Grid;
- use app\model\ProPch;
- class ProPchService
- {
- public static function addProPch($info,$uuid): bool
- {
- $info['pch'] = substr($info['rq'],2,2)
- .substr($info['rq'],5,2)
- .substr($info['rq'],8,2).
- '-'.$uuid;
- return (new ProPch())->save($info);
- }
- public static function getPchByProId($id){
- return ProPch::where("pro_id",$id)->select();
- }
- }
|