From b2257a85cb8c3e69b79c1df1700f1684c5815260 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Sat, 7 Oct 2023 17:04:58 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E4=BB=BB=E5=8A=A1=E7=BB=93=E7=AE=97?= =?UTF-8?q?=E6=98=AF=E7=BB=93=E7=AE=97=E5=BD=93=E5=A4=A9=E7=9A=84=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/CronController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/controller/CronController.php b/app/api/controller/CronController.php index c4ba87d1b..d39df3548 100644 --- a/app/api/controller/CronController.php +++ b/app/api/controller/CronController.php @@ -26,7 +26,7 @@ class CronController extends BaseApiController */ public function settlement(){ // $all=TaskSchedulingPlan::where('is_pay',0)->with(['template_info','scheduling'])->select()->toArray(); - $all = TaskSchedulingPlan::whereDay('end_time','yesterday') + $all = TaskSchedulingPlan::whereDay('end_time','today') ->withJoin(['scheduling'], 'left') ->where('scheduling.company_type', 18) ->where('is_pay',0) @@ -81,8 +81,8 @@ class CronController extends BaseApiController public function town_task_settlement() { Log::info('镇农科公司定时任务结算执行-开始'.date('Y-m-d H:i:s')); - //yesterday 昨日未结算的任务计划 - $taskSchedulingPlanList = TaskSchedulingPlan::whereDay('end_time','yesterday') + //today 今日未结算的任务计划 + $taskSchedulingPlanList = TaskSchedulingPlan::whereDay('end_time','today') ->withJoin(['scheduling'], 'left') ->where('scheduling.company_type', 41) ->where('is_pay',0)