Explorar el Código

退款-历史工单明细

whitefang hace 1 año
padre
commit
296d1510dc
Se han modificado 1 ficheros con 3 adiciones y 6 borrados
  1. 3 6
      app/workerapi/lists/HistoryWorkLists.php

+ 3 - 6
app/workerapi/lists/HistoryWorkLists.php

@@ -26,13 +26,10 @@ class HistoryWorkLists extends BaseWorkerDataLists
         $service_status = $this->params['service_status'] ?? 3;
         $service_status = $this->params['service_status'] ?? 3;
         $service_status = $service_status == 4 ? '4,5':$service_status;
         $service_status = $service_status == 4 ? '4,5':$service_status;
 
 
+        $where[] =  ['master_worker_id','=',$this->userId];
+        $where[] =  ['approval','=',1];
+        $where[] =  ['service_status','in',$service_status];
 
 
-        $where = [
-            'master_worker_id'=>$this->userId,
-            'approval'=>1,//派单的时候默认审核了
-        ];
-
-        $where['service_status'] = ['in',$service_status];
         //查询月数
         //查询月数
         $create_month = !empty($this->params['create_month'])?$this->params['create_month']:date('Y-m');
         $create_month = !empty($this->params['create_month'])?$this->params['create_month']:date('Y-m');
         $list = ServiceWork::where($where)
         $list = ServiceWork::where($where)