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)