diff --git a/application/command.php b/application/command.php index 92c2963..20b7957 100755 --- a/application/command.php +++ b/application/command.php @@ -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', ]; diff --git a/application/common/command/CheckOrdeRecordCommand.php b/application/common/command/CheckOrdeRecordCommand.php index 70ad812..4c7f45e 100644 --- a/application/common/command/CheckOrdeRecordCommand.php +++ b/application/common/command/CheckOrdeRecordCommand.php @@ -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');