|
|
@@ -13,7 +13,7 @@ class CancelDispatch extends Command
|
|
|
protected function configure()
|
|
|
{
|
|
|
$this->setName('cancel_dispatch')
|
|
|
- ->setDescription('派单5分钟未领取的工单自动取消');
|
|
|
+ ->setDescription('派单10分钟未领取的工单自动取消');
|
|
|
}
|
|
|
|
|
|
protected function execute(Input $input, Output $output)
|
|
|
@@ -23,12 +23,12 @@ class CancelDispatch extends Command
|
|
|
}
|
|
|
|
|
|
/*
|
|
|
- * 超过5分钟未领取工单的,取消分配
|
|
|
+ * 超过10分钟未领取工单的,取消分配
|
|
|
*/
|
|
|
protected function cancelDispatch()
|
|
|
{
|
|
|
$list = ServiceWork::where('work_status',1)
|
|
|
- ->where('dispatch_time','<',strtotime('-5 minutes'))
|
|
|
+ ->where('dispatch_time','<',strtotime('-10 minutes'))
|
|
|
->where('dispatch_time','>=',strtotime('-1 days'))
|
|
|
->field('id,tenant_id,master_worker_id,appointment_time')
|
|
|
->limit(100)
|