liugc 1 年之前
父節點
當前提交
fcc5163fd1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/workerapi/lists/MasterWorkerLists.php

+ 1 - 1
app/workerapi/lists/MasterWorkerLists.php

@@ -35,7 +35,7 @@ class MasterWorkerLists extends BaseWorkerDataLists implements ListsSearchInterf
                 $where[] = ['team_id','=',$team['id']];
                 $where[] = ['team_id','=',$team['id']];
             }
             }
         }
         }
-        if($this->params['work_id']){
+        if(isset($this->params['work_id']) && !empty($this->params['work_id'])){
             $where[] = ['team_role','=',2];
             $where[] = ['team_role','=',2];
             $where[] = ['work_status','=',0];
             $where[] = ['work_status','=',0];
             $where[] = ['audit_state','=',1];
             $where[] = ['audit_state','=',1];