第一次成功创建任务模板,初始化公司的提现截止时间
This commit is contained in:
parent
4855bb5959
commit
c795d6ecce
@ -15,13 +15,15 @@ class TaskSettlementCron extends Task{
|
|||||||
// $this->everyMinute();//每分钟
|
// $this->everyMinute();//每分钟
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 任务结算
|
* 小组服务公司任务结算
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
protected function execute()
|
protected function execute()
|
||||||
{
|
{
|
||||||
//yesterday
|
//yesterday
|
||||||
$all=TaskSchedulingPlan::whereDay('end_time','yesterday')->where('is_pay',0)->with(['template_info','scheduling'])->select()->toArray();
|
$all=TaskSchedulingPlan::whereDay('end_time','yesterday')->where('is_pay',0)->with(['template_info','scheduling'=>function($query){
|
||||||
|
$query->where('company_type', 18);
|
||||||
|
}])->select()->toArray();
|
||||||
foreach($all as $k=>$v){
|
foreach($all as $k=>$v){
|
||||||
queue(TaskInformationJob::class,$v);
|
queue(TaskInformationJob::class,$v);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user