Browse Source

隐藏warning-web定时任务

‘xugp 2 years ago
parent
commit
56dc3e648c

+ 1 - 1
warning-web/src/main/java/com/gyee/wisdom/alarm/sharding/schedule/AlarmCountPartsScheduled.java

@@ -49,7 +49,7 @@ public class AlarmCountPartsScheduled {
 
     @Autowired
     private AlarmHistoryService alarmHistoryService;
-    @Scheduled(cron = "* 41 10 ? * 3")
+    /*@Scheduled(cron = "* 41 10 ? * 3")*/
     public boolean doTask() {
 
         try {

+ 1 - 1
warning-web/src/main/java/com/gyee/wisdom/alarm/sharding/schedule/AlarmCountStatScheduled.java

@@ -48,7 +48,7 @@ public class AlarmCountStatScheduled {
 
     @Autowired
     private AlarmHistoryService alarmHistoryService;
-    @Scheduled(cron = "0 30 0 ? * *")
+    /*@Scheduled(cron = "0 30 0 ? * *")*/
     public boolean doTask() {
 
         if (!custom){

+ 1 - 1
warning-web/src/main/java/com/gyee/wisdom/alarm/sharding/schedule/CreateTablesScheduled.java

@@ -17,7 +17,7 @@ public class CreateTablesScheduled {
     @Value("${tablespace}")
     String tablespace;
     //秒 分 时 日 月 周
-    @Scheduled(cron="0 34 11 * * 5")
+    /*@Scheduled(cron="0 34 11 * * 5")*/
     public void doTask(){
         Calendar instance = Calendar.getInstance();
         //查看当前时间的下月是否有表,没有就创建

+ 1 - 1
warning-web/src/main/java/com/gyee/wisdom/alarm/sharding/schedule/FaultStatScheduled.java

@@ -26,7 +26,7 @@ public class FaultStatScheduled {
     @Autowired
     private FaultStatisticWindturbineService faultStatisticWindturbineService;
 
-    @Scheduled(cron = "0 20 0 ? * *")
+    /*@Scheduled(cron = "0 20 0 ? * *")*/
     public String doTask() throws Exception {
         if (!fault) {
             return null;