Przeglądaj źródła

up - 新增状态条件

liugc 1 rok temu
rodzic
commit
41a3147170

+ 1 - 1
app/adminapi/lists/master_worker/MasterWorkerLists.php

@@ -108,7 +108,7 @@ class MasterWorkerLists extends BaseAdminDataLists implements ListsSearchInterfa
             ->order($orders)
             ->select()->toArray();
         $workCount = array_column(ServiceWork::where('master_worker_id','>',0)
-            ->whereNotIn('work_status', [7,8])
+            ->whereNotIn('work_status', [7,8,9])
             ->whereIn('master_worker_id', array_column($list, 'id'))
             ->field(['master_worker_id',Db::raw('COUNT(id) as work_total')])
             ->group('master_worker_id')