fixed 任务结算是结算当天的任务
This commit is contained in:
parent
65c2a46e34
commit
b2257a85cb
@ -26,7 +26,7 @@ class CronController extends BaseApiController
|
|||||||
*/
|
*/
|
||||||
public function settlement(){
|
public function settlement(){
|
||||||
// $all=TaskSchedulingPlan::where('is_pay',0)->with(['template_info','scheduling'])->select()->toArray();
|
// $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')
|
->withJoin(['scheduling'], 'left')
|
||||||
->where('scheduling.company_type', 18)
|
->where('scheduling.company_type', 18)
|
||||||
->where('is_pay',0)
|
->where('is_pay',0)
|
||||||
@ -81,8 +81,8 @@ class CronController extends BaseApiController
|
|||||||
public function town_task_settlement()
|
public function town_task_settlement()
|
||||||
{
|
{
|
||||||
Log::info('镇农科公司定时任务结算执行-开始'.date('Y-m-d H:i:s'));
|
Log::info('镇农科公司定时任务结算执行-开始'.date('Y-m-d H:i:s'));
|
||||||
//yesterday 昨日未结算的任务计划
|
//today 今日未结算的任务计划
|
||||||
$taskSchedulingPlanList = TaskSchedulingPlan::whereDay('end_time','yesterday')
|
$taskSchedulingPlanList = TaskSchedulingPlan::whereDay('end_time','today')
|
||||||
->withJoin(['scheduling'], 'left')
|
->withJoin(['scheduling'], 'left')
|
||||||
->where('scheduling.company_type', 41)
|
->where('scheduling.company_type', 41)
|
||||||
->where('is_pay',0)
|
->where('is_pay',0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user