Переглянути джерело

up- 放开未上门终止结束服务

liugc 1 рік тому
батько
коміт
4e11243f35
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      app/adminapi/logic/works/ServiceWorkLogic.php

+ 1 - 1
app/adminapi/logic/works/ServiceWorkLogic.php

@@ -1103,7 +1103,7 @@ class ServiceWorkLogic extends BaseLogic
         try {
             $serviceWork = ServiceWork::where('work_pay_status',1)
                 ->where('master_worker_id','>',0)
-                ->whereIn('work_status',[4,5,6])
+                ->whereIn('work_status',[0,1,2,3,4,5,6])
                 ->where('id',$params['id'])->findOrEmpty();
             if($serviceWork->isEmpty()){
                 throw new \Exception('该工单状态不可执行结束服务');