Browse Source

首页统计

xdd 1 tháng trước cách đây
mục cha
commit
3bf73a3b26

+ 12 - 4
fs-service-system/src/main/java/com/fs/statis/service/impl/StatisticsServiceImpl.java

@@ -42,7 +42,7 @@ public class StatisticsServiceImpl implements IStatisticsService {
 
 
     @Override
-    @Scheduled(cron = "0 * * * * *")
+    @Scheduled(cron = "0 0 * * * *")
     public void dataOverviewTask() {
         DealerAggregatedDTO dealerAggregatedDTO = this.dealerAggregated();
         ConsumptionBalanceDataDTO consumptionBalanceDataDTO = this.rechargeConsumption();
@@ -56,12 +56,12 @@ public class StatisticsServiceImpl implements IStatisticsService {
     }
 
 
-    @Scheduled(cron = "0 * * * * *")
+    @Scheduled(cron = "0 0/15 * * * *")
     public void analysisPreviewTask0(){
         analysisPreviewTask(0);
     }
 
-    @Scheduled(cron = "0 * * * * *")
+    @Scheduled(cron = "0 0 1 * * *")
     public void analysisPreviewTask1(){
         analysisPreviewTask(0);
         analysisPreviewTask(1);
@@ -124,7 +124,7 @@ public class StatisticsServiceImpl implements IStatisticsService {
 
     }
 
-    @Scheduled(cron = "0 * * * * *")
+    @Scheduled(cron = "0 0/15 * * * *")
     public void watchEndPlayTrendTask0(){
         this.watchEndPlayTrendTask(0);
         this.watchEndPlayTrendTask(1);
@@ -133,6 +133,14 @@ public class StatisticsServiceImpl implements IStatisticsService {
         this.watchEndPlayTrendTask(4);
     }
 
+    @Scheduled(cron = "0 0 1 * * *")
+    public void watchEndPlayTrendTask1(){
+        this.watchEndPlayTrendTask(1);
+        this.watchEndPlayTrendTask(2);
+        this.watchEndPlayTrendTask(3);
+        this.watchEndPlayTrendTask(4);
+    }
+
 
     @Override
     public void watchEndPlayTrendTask(Integer type) {