From e02deb601db3bea95aed29733f97f936c0940b47 Mon Sep 17 00:00:00 2001 From: xman <1946321327@qq.com> Date: Wed, 4 Jun 2025 10:14:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/command.php | 11 +++++++---- application/common/command/CheckOrdeRecordCommand.php | 5 +++-- 2 files changed, 10 insertions(+), 6 deletions(-) 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');