|
@@ -73,7 +73,7 @@ class AutomaticDispatch extends Command
|
|
|
|
|
|
|
|
$list = ServiceWork::alias("a")
|
|
$list = ServiceWork::alias("a")
|
|
|
->leftJoin('service_work_anomalous b','a.id = b.work_id')
|
|
->leftJoin('service_work_anomalous b','a.id = b.work_id')
|
|
|
- ->where('a.work_status',3)
|
|
|
|
|
|
|
+ ->where('a.work_status','<',3)
|
|
|
->where('a.service_status','<',2)
|
|
->where('a.service_status','<',2)
|
|
|
->where('a.refund_approval',0)
|
|
->where('a.refund_approval',0)
|
|
|
->where('a.work_pay_status',1)
|
|
->where('a.work_pay_status',1)
|