|
@@ -35,6 +35,9 @@ public class TaskController {
|
|
|
@Autowired
|
|
|
private DemReportDataService demReportDataService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ReportIndexResultService reportIndexResultService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private PatrolInspectionPlanService patrolInspectionPlanService;
|
|
|
|
|
@@ -71,7 +74,7 @@ public class TaskController {
|
|
|
@Scheduled(cron = "0 0/3 * * * ? ") // 间隔5分钟执行
|
|
|
public void task4() {
|
|
|
System.out.println(Thread.currentThread().getName() + "消防报告生成定时任务执行中");
|
|
|
- demReportDataService.regularReportData();
|
|
|
+ reportIndexResultService.reportIndexResult();
|
|
|
}
|
|
|
//
|
|
|
// @Scheduled(cron = "0 0 23 * * ? ")//每天23点
|