diff --git a/app/task/TaskCron.php b/app/task/TaskCron.php index 0e09578cd..a7e5485c2 100644 --- a/app/task/TaskCron.php +++ b/app/task/TaskCron.php @@ -20,7 +20,7 @@ class TaskCron extends Task // $this->everyMinute();//每分钟 } /** - * 执行任务 + * 小组服务公司执行任务下发 * @return mixed */ protected function execute() @@ -29,7 +29,8 @@ class TaskCron extends Task // $time=strtotime(date('Y-m-d',strtotime('-1 day'))); $time = strtotime(date('Y-m-d')); // $tiem_end=$time+86399; - $plan_all = TaskScheduling::where('cron_time', '<', $time)->where('status', 1)->with('company_info')->select()->toArray(); + // 查询系统目前小组公司的任务安排 + $plan_all = TaskScheduling::where('cron_time', '<', $time)->where('status', 1)->where('company_type', 18)->with('company_info')->select()->toArray(); $plan_ids = []; foreach ($plan_all as $k => $v) { $all = TaskTemplate::where('status', 1)->where('task_scheduling', $v['id'])->limit(30)->select()->toArray();