通知
This commit is contained in:
parent
9fefc01a25
commit
e02deb601d
|
|
@ -22,8 +22,11 @@ return [
|
|||
'app\admin\command\ImportServiceItems',
|
||||
'app\admin\command\Test',
|
||||
|
||||
'app\common\command\UpdateWorkerManCommand', //更新师傅评分
|
||||
'app\common\command\CheckOrderDispatchCommand', //检测超时的任务
|
||||
'app\common\command\CheckOrderDispatchGotCommand', //dispatch未接单通知
|
||||
'app\common\command\CheckOrdeRecordCommand', //跟进记录
|
||||
'app\common\command\UpdateWorkerManCommand',
|
||||
'app\common\command\CheckOrderDispatchCommand',
|
||||
'app\common\command\CheckOrdeRecordCommand',
|
||||
'app\common\command\CheckSmsPlantCommand',
|
||||
'app\common\command\CheckTTSOverTimeCommand',
|
||||
'app\common\command\CheckTTSTaskCommand',
|
||||
'app\common\command\UpdateWorkerManCommand',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ class CheckOrdeRecordCommand extends Command
|
|||
protected function execute(Input $input, Output $output){
|
||||
$Model = new OrderDispatchRecord();
|
||||
$now = date('Y-m-d H:i:s');
|
||||
|
||||
$Model->where('notice_time','<=',$now)
|
||||
->where('status',0)
|
||||
->chunk(100, function ($list) {
|
||||
|
|
@ -44,7 +43,9 @@ class CheckOrdeRecordCommand extends Command
|
|||
}
|
||||
}
|
||||
OrderDispatchRecord::whereIn('id',$ids)->where('status',0)->update(['status'=>1]);
|
||||
OrderDispatch::whereIn('id',$dispatchIds)->where('follow',1)->update(['follow'=>0]);
|
||||
$count = OrderDispatch::whereIn('id',$dispatchIds)->where('follow',1)->update(['follow'=>0]);
|
||||
|
||||
echo 'count:'.$count.PHP_EOL;
|
||||
});
|
||||
|
||||
$output->info('OVER');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user