瀏覽代碼

光伏的统计时间由18点改成18.05

chenminghua 3 年之前
父節點
當前提交
f817b89e04
共有 1 個文件被更改,包括 12 次插入1 次删除
  1. 12 1
      src/main/java/cn/gyee/tamplate/task/SaticScheduleTask.java

+ 12 - 1
src/main/java/cn/gyee/tamplate/task/SaticScheduleTask.java

@@ -73,10 +73,15 @@ public class SaticScheduleTask {
     private void analysisTasks() {
         String yesterday = DateUtils.getYesterdayStr("yyyy-MM-dd");
         try {
+            //保存主表
             analysisNewService.savaAnalysismain(yesterday, yesterday);
+            //风电表底
             analysisNewService.saveAnalysisTableBottom(yesterday, yesterday);
+            //风电工程
             analysisNewService.saveWindProject(yesterday, yesterday);
+            //风电场站
             analysisNewService.saveWindStation(yesterday, yesterday);
+            //公司
             analysisNewService.saveCompany(yesterday, yesterday);
         } catch (Exception e) {
             e.printStackTrace();
@@ -86,18 +91,24 @@ public class SaticScheduleTask {
     /**
      * 光伏统计分析
      */
-    @Scheduled(cron = "0 0 18 * * ?")
+    @Scheduled(cron = "0 5 18 * * ?")
     //或直接指定时间间隔,例如:5秒
     //@Scheduled(fixedRate=5000)
     private void analysisGfTasks() {
 //        String yesterday = DateUtils.getYesterdayStr("yyyy-MM-dd");
         String yesterday = DateUtils.toDate1(DateUtils.today());
         try {
+            //主表
             analysisNewService.savaAnalysismain(yesterday, yesterday);
+            //下午6点的表底存储
             analysisNewService.saveAnalysisTableBottom1(yesterday, yesterday);
+            //光伏主表
             analysisNewService.savaAnalysisGfmain(yesterday, yesterday);
+            //光伏表底存储
             analysisNewService.saveAnalysisGfTableBottom(yesterday, yesterday);
+            //光伏项目
             analysisNewService.savePvProject(yesterday, yesterday);
+            //光伏场站
             analysisNewService.savePvStation(yesterday, yesterday);
         } catch (Exception e) {
             e.printStackTrace();