Kaynağa Gözat

中控缺失字段,定时任务调整区间

yangbq 1 hafta önce
ebeveyn
işleme
a0ded95361

+ 2 - 0
src/main/java/com/sckj/project/domain/building/LargeBuildingControl.java

@@ -145,6 +145,8 @@ public class LargeBuildingControl {
      */
     private String abnormalPointFour;
 
+    private String photovoltaicPower;
+
 
     public LargeBuildingControl() {
     }

+ 5 - 5
src/main/java/com/sckj/project/task/ProjectTaskController.java

@@ -31,7 +31,7 @@ public class ProjectTaskController {
     /**
      *  服务保障中心
      */
-    @Scheduled(cron = "0 0/30 * * * ?")
+    @Scheduled(cron = "0 0/20 6-19 * * ?")
     public void taskService() {
         log.info("服务保障中心定时任务开始执行");
         serviceTaskService.myTask();
@@ -42,7 +42,7 @@ public class ProjectTaskController {
     /**
      *  后勤资源监控
      */
-    @Scheduled(cron = "0 0/30 * * * ?")
+    @Scheduled(cron = "0 0/22 06-19 * * ?")
     public void taskLogistics(){
         log.info("后勤资源监控定时任务开始执行");
         logisticsTaskService.myTask();
@@ -53,7 +53,7 @@ public class ProjectTaskController {
     /**
      *  楼宇运行监控
      */
-    @Scheduled(cron = "0 0/30 * * * ?")
+    @Scheduled(cron = "0 0/24 06-19 * * ?")
     public void taskBuilding(){
         log.info("楼宇运行监控定时任务开始执行");
         buildingTaskService.myTask();
@@ -63,7 +63,7 @@ public class ProjectTaskController {
     /**
      *  工程现场监控
      */
-    @Scheduled(cron = "0 0/30 * * * ?")
+    @Scheduled(cron = "0 0/26 06-19 * * ?")
     public void taskEngineering(){
         log.info("工程现场监控定时任务开始执行");
         engineeringTaskService.myTask();
@@ -73,7 +73,7 @@ public class ProjectTaskController {
     /**
      *  公务用车
      */
-    @Scheduled(cron = "0 0/30 * * * ?")
+    @Scheduled(cron = "0 0/30 06-19 * * ?")
     public void taskCar(){
         log.info("公务用车定时任务开始执行");
         carTaskService.myTask();