Kaynağa Gözat

退款-历史工单明细

whitefang 1 yıl önce
ebeveyn
işleme
296d1510dc
1 değiştirilmiş dosya ile 3 ekleme ve 6 silme
  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 = $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');
         $list = ServiceWork::where($where)