Browse Source

修改光伏项目与场站表不算的问题

xieshengjie 3 years ago
parent
commit
c717fef03e

+ 3 - 2
src/main/java/cn/gyee/tamplate/task/SaticScheduleTask.java

@@ -97,13 +97,14 @@ public class SaticScheduleTask {
     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);
+            //下午6点的表底存储
+            analysisNewService.saveAnalysisTableBottom1(yesterday, yesterday);
             //光伏表底存储
             analysisNewService.saveAnalysisGfTableBottom(yesterday, yesterday);
             //光伏项目

+ 9 - 2
src/test/java/cn/gyee/tamplate/AnalysisTest.java

@@ -27,6 +27,13 @@ public class AnalysisTest {
     public void test3() throws  Exception{
 
 
+        analysisNewService.savaAnalysismain("2021-11-23", "2021-11-23");
+        analysisNewService.saveAnalysisTableBottom("2021-11-23", "2021-11-23");
+        analysisNewService.saveWindProject("2021-11-23", "2021-11-23");
+        analysisNewService.saveWindStation("2021-11-23", "2021-11-23");
+        analysisNewService.saveCompany("2021-11-23", "2021-11-23");
+
+
 //       analysisNewService.savaAnalysisGfmain("2021-04-01", "2021-04-22");
 //        analysisNewService.saveAnalysisGfTableBottom("2021-07-10", "2021-08-02");
 //        analysisNewService.savePvProject("2021-04-01", "2021-04-22");
@@ -34,8 +41,8 @@ public class AnalysisTest {
 //        analysisNewService.saveAnalysisTableBottom("2021-10-28", "2021-10-28");
 //        analysisNewService.savePvProject("2021-10-29", "2021-10-29");
 //        analysisNewService.savePvStation("2021-10-29", "2021-10-29");
-        analysisNewService.savePvProject("2021-11-22", "2021-11-22");
-        analysisNewService.savePvStation("2021-11-22", "2021-11-22");
+//        analysisNewService.savaAnalysisGfmain("2021-11-23", "2021-11-23");
+//        analysisNewService.savePvStation("2021-11-22", "2021-11-22");
         //  analysisNewService.savaAnalysismain("2021-04-25", "2021-04-25");
 //        analysisNewService.saveAnalysisTableBottom("2021-07-10", "2021-08-02");
 //        analysisNewService.saveWindProject("2021-10-30", "2021-10-30");