|
|
@@ -33,12 +33,14 @@ class MasterWorkerLists extends BaseWorkerDataLists implements ListsSearchInterf
|
|
|
$where[] = ['team_id','=',-1];
|
|
|
}else{
|
|
|
$where[] = ['team_id','=',$team['id']];
|
|
|
- $where[] = ['team_role','=',2];
|
|
|
- $where[] = ['work_status','=',0];
|
|
|
- $where[] = ['audit_state','=',1];
|
|
|
- $where[] = ['accept_order_status','=',1];
|
|
|
}
|
|
|
}
|
|
|
+ if($this->params['work_id']){
|
|
|
+ $where[] = ['team_role','=',2];
|
|
|
+ $where[] = ['work_status','=',0];
|
|
|
+ $where[] = ['audit_state','=',1];
|
|
|
+ $where[] = ['accept_order_status','=',1];
|
|
|
+ }
|
|
|
return $where;
|
|
|
}
|
|
|
|