zgg 2 місяців тому
батько
коміт
de65433029

+ 2 - 1
application/api/controller/v1/PhOrders.php

@@ -47,8 +47,9 @@ class PhOrders extends Base
         $end = input('end','');
         $hgName = input('hgName','','trim');
         $brName = input('brName','','trim');
+        $depId = input('depId/d',0);
         $model = new \app\common\model\PhOrders();
-        $res = $model->orderList1($this->orgId,$this->userId,$status,$start,$end,$hgName,$brName,$page,$size);
+        $res = $model->orderList1($this->orgId,$this->userId,$status,$start,$end,$hgName,$brName,$depId,$page,$size);
         HelpHander::success($res,'操作成功');
 
     }

+ 4 - 1
application/common/model/PhOrders.php

@@ -842,7 +842,7 @@ class PhOrders extends Base
 
 
     //调度订单列表
-    public function orderList1($orgId,$userId,$status,$begin,$end,$hgName,$brName,$page,$size){
+    public function orderList1($orgId,$userId,$status,$begin,$end,$hgName,$brName,$depId,$page,$size){
         $start = ($page - 1) * $size;
         if($status >= 0){
             if($status==2){
@@ -877,6 +877,9 @@ class PhOrders extends Base
         if($brName){
             $map[] = ['name','like','%'.$brName.'%'];
         }
+        if($depId){
+            $map[] = ['dep_id','=',$depId];
+        }
 //        $depId = Db::name('ph_user')
 //            ->where('enable',1)
 //            ->where('del',0)