更新
This commit is contained in:
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||
namespace app\common\command;
|
||||
|
||||
use app\common\model\doctor\Appointment;
|
||||
use app\common\service\tcm\RevisitDueHook;
|
||||
use think\console\Command;
|
||||
use think\console\Input;
|
||||
use think\console\input\Option;
|
||||
@@ -55,6 +56,9 @@ class UpdateAppointmentStatus extends Command
|
||||
$missedCount = Db::execute($missedSql, [$now]);
|
||||
$cancelCount = Db::execute($cancelSql, [$now]);
|
||||
|
||||
// 过号/取消落库后重评复诊到期快照中「已约」行(当天过号即进标红/弹窗;钩子内部已 try/catch)
|
||||
RevisitDueHook::onAppointmentStatusCronDone();
|
||||
|
||||
$output->writeln("已过号(1→4): {$missedCount} 条");
|
||||
$output->writeln("已取消(4→2,过号超8小时): {$cancelCount} 条");
|
||||
Log::info("update_appointment_status: 已过号 {$missedCount}, 已取消 {$cancelCount}");
|
||||
|
||||
Reference in New Issue
Block a user