浏览代码

调整 峰平谷

guoqiang 6 月之前
父节点
当前提交
cab7410b85

+ 3 - 5
jeecg-module-gather/src/main/java/org/jeecg/modules/fpgJob/LeanModelStatistics.java

@@ -71,8 +71,7 @@ public class LeanModelStatistics {
      * 精益模型统计数据
      * 执行完后,间隔1秒继续执行
      */
-    @Scheduled(cron = "0 */1 * * * ?")
-//    @Scheduled(cron = "*/30 * * * * ?")
+    @Scheduled(fixedDelay = 1000 * 60)
     public void t1(){
         leanModel();
     }
@@ -81,7 +80,7 @@ public class LeanModelStatistics {
      * 变更占比
      *  0 0 03 * * *     每日3点执行 测试期间1ms一次
      */
-    @Scheduled(cron = "0 0 03 * * ?")
+    @Scheduled(cron = "0 0 03 * * *")
 //    @Scheduled(fixedDelay = 1000)
     public void t2(){
         changeProportion();
@@ -90,8 +89,7 @@ public class LeanModelStatistics {
     /**
      * 设备启停统计数据
      */
-    @Scheduled(cron = "0 */1 * * * ?")
-//    @Scheduled(cron = "*/30 * * * * ?")
+    @Scheduled(fixedDelay = 1000 * 60)
     public void t3(){
         deviceStatistics();
     }

+ 1 - 1
jeecg-module-gather/src/main/java/org/jeecg/modules/watch/PostgreSQLWatch.java

@@ -50,7 +50,7 @@ public class PostgreSQLWatch {
     @Autowired
     MongoTemplate mongoTemplate;
 
-//    @Scheduled(cron = "0 */5 * * * ?")
+    @Scheduled(fixedDelay = 1000 * 60 * 2)
     public void getTsData() {
         Connection connection = null;
         PreparedStatement statement = null;