|
|
@@ -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)
|