Explorar el Código

add 预警超时未派单列表

liugc hace 1 año
padre
commit
bd96fa0a92
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      app/adminapi/lists/works/ServiceWorkLists.php

+ 7 - 0
app/adminapi/lists/works/ServiceWorkLists.php

@@ -151,6 +151,13 @@ class ServiceWorkLists extends BaseAdminDataLists implements ListsSearchInterfac
                 $where[] = ['property_activity_id','>',0];
                 $where[] = ['property_activity_id','>',0];
             }
             }
         }
         }
+        if(isset($this->params['overdue_service_work']) && !empty($this->params['overdue_service_work'])){
+            // 待派单  工程师==0  创建时间超过30m
+            $where[] = ['create_time','<',time()-30*60];
+            $where[] = ['master_worker_id','=',0];
+            $where[] = ['work_status','=',0];
+            $where[] = ['service_status','=',0];
+        }
         return $where;
         return $where;
     }
     }
     /**
     /**