更新
This commit is contained in:
parent
f6761583c3
commit
324a1a5cdf
@ -22,6 +22,7 @@ class TaskInformationJob
|
|||||||
// }
|
// }
|
||||||
$company = Company::where('id', $data['company_id'])->field('id,deposit,company_money,user_id,day_count,company_type,province,city,area,street,village,brigade')->find(); // 可能要判断预存金是否满足
|
$company = Company::where('id', $data['company_id'])->field('id,deposit,company_money,user_id,day_count,company_type,province,city,area,street,village,brigade')->find(); // 可能要判断预存金是否满足
|
||||||
$arr['status']=0;
|
$arr['status']=0;
|
||||||
|
//信息更新
|
||||||
if ($data['template_info']['type'] == 31) {
|
if ($data['template_info']['type'] == 31) {
|
||||||
$task_id = explode(',', $data['task_id']);
|
$task_id = explode(',', $data['task_id']);
|
||||||
$task_count = Task::where('id', 'in', $task_id)->field('director_uid')->with('director_info')->select();
|
$task_count = Task::where('id', 'in', $task_id)->field('director_uid')->with('director_info')->select();
|
||||||
@ -50,6 +51,7 @@ class TaskInformationJob
|
|||||||
$arr['status']=1;
|
$arr['status']=1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//三轮车
|
||||||
if ($data['template_info']['type'] == 32) {
|
if ($data['template_info']['type'] == 32) {
|
||||||
$yesterday = date('Y-m-d', strtotime('-1 day', time()));
|
$yesterday = date('Y-m-d', strtotime('-1 day', time()));
|
||||||
$parmas = [
|
$parmas = [
|
||||||
|
@ -25,7 +25,7 @@ class TaskCron extends Task{
|
|||||||
Log::error('定时任务执行成功'.date('Y-m-d H:i:s'));
|
Log::error('定时任务执行成功'.date('Y-m-d H:i:s'));
|
||||||
|
|
||||||
//任务结算
|
//任务结算
|
||||||
$all=TaskSchedulingPlan::whereDay('start_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'])->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