Explorar o código

add 工程师Id展示

liugc hai 9 meses
pai
achega
39d689c97c

+ 3 - 0
app/adminapi/lists/master_worker/MasterWorkerLists.php

@@ -140,6 +140,9 @@ class MasterWorkerLists extends BaseAdminDataLists implements ListsSearchInterfa
             $where[] = [ 'mw.id','IN',$ids];
             $where[] = [ 'mw.work_status','=',0];
         }
+        if(isset($this->params['id']) && $this->params['id']){
+            $where[] =[ 'mw.id','= ',$this->params['id']];
+        }
         Log::debug('MasterWorker-where:'.json_encode($where));
         return $where;
     }

+ 1 - 1
app/adminapi/lists/master_worker_register/MasterWorkerRegisterLists.php

@@ -40,7 +40,7 @@ class MasterWorkerRegisterLists extends BaseAdminDataLists implements ListsSearc
     public function setSearch(): array
     {
         return [
-            '=' => ['maintain_exp_type', 'other_exp_type', 'city', 'vehicle_type', 'status','is_credential','sale_id'],
+            '=' => ['id','maintain_exp_type', 'other_exp_type', 'city', 'vehicle_type', 'status','is_credential','sale_id'],
             '%like%' => ['name', 'mobile'],
             '<=' => ['age'],
         ];