|
@@ -52,32 +52,32 @@ public class TaskController {
|
|
|
bscEnterpriseScreenService.dataSynchro();
|
|
|
}
|
|
|
|
|
|
- @Scheduled(cron = "0 0 2 * * ? ")//每天凌晨2点
|
|
|
- public void task2() {
|
|
|
- System.out.println(Thread.currentThread().getName() + "企业自主管理(全、街道)大屏定时任务执行中");
|
|
|
- bscEnterpriseAutonomyService.enterpriseAutonomyTask();
|
|
|
- bscEnterpriseStreetTownService.enterpriseStreetTownTask();
|
|
|
- bscLawTrendService.lawEnforcement();
|
|
|
- }
|
|
|
-
|
|
|
- @Scheduled(cron = "0 0/30 * * * ? ") // 间隔30分钟执行
|
|
|
- public void task3() {
|
|
|
- System.out.println(Thread.currentThread().getName() + "电子督察单定时任务执行中");
|
|
|
- demInspectListService.demInspectAutoTask();
|
|
|
- }
|
|
|
-
|
|
|
- @Scheduled(cron = "0 0 1 1 * ?")//每月1号凌晨1点
|
|
|
-// @Scheduled(cron = "0 0/5 * * * ? ") // 间隔5分钟执行
|
|
|
- public void task4() {
|
|
|
- System.out.println(Thread.currentThread().getName() + "消防报告生成定时任务执行中");
|
|
|
- demReportDataService.regularReportData();
|
|
|
- }
|
|
|
-
|
|
|
- @Scheduled(cron = "0 0 23 * * ? ")//每天23点
|
|
|
- public void task5(){
|
|
|
- System.out.println(Thread.currentThread().getName() + "巡检计划分批次创建执行中");
|
|
|
- patrolInspectionPlanService.addPatrolInspectionPlanSon();
|
|
|
- }
|
|
|
+// @Scheduled(cron = "0 0 2 * * ? ")//每天凌晨2点
|
|
|
+// public void task2() {
|
|
|
+// System.out.println(Thread.currentThread().getName() + "企业自主管理(全、街道)大屏定时任务执行中");
|
|
|
+// bscEnterpriseAutonomyService.enterpriseAutonomyTask();
|
|
|
+// bscEnterpriseStreetTownService.enterpriseStreetTownTask();
|
|
|
+// bscLawTrendService.lawEnforcement();
|
|
|
+// }
|
|
|
+//
|
|
|
+// @Scheduled(cron = "0 0/30 * * * ? ") // 间隔30分钟执行
|
|
|
+// public void task3() {
|
|
|
+// System.out.println(Thread.currentThread().getName() + "电子督察单定时任务执行中");
|
|
|
+// demInspectListService.demInspectAutoTask();
|
|
|
+// }
|
|
|
+//
|
|
|
+// @Scheduled(cron = "0 0 1 1 * ?")//每月1号凌晨1点
|
|
|
+// // @Scheduled(cron = "0 0/5 * * * ? ") // 间隔5分钟执行
|
|
|
+// public void task4() {
|
|
|
+// System.out.println(Thread.currentThread().getName() + "消防报告生成定时任务执行中");
|
|
|
+// demReportDataService.regularReportData();
|
|
|
+// }
|
|
|
+//
|
|
|
+// @Scheduled(cron = "0 0 23 * * ? ")//每天23点
|
|
|
+// public void task5(){
|
|
|
+// System.out.println(Thread.currentThread().getName() + "巡检计划分批次创建执行中");
|
|
|
+// patrolInspectionPlanService.addPatrolInspectionPlanSon();
|
|
|
+// }
|
|
|
|
|
|
}
|
|
|
|