|
@@ -68,12 +68,37 @@ public class SaticScheduleTask {
|
|
// analysisService.analysiswindstationtask(yesterday,yesterday);
|
|
// analysisService.analysiswindstationtask(yesterday,yesterday);
|
|
// analysisService.analysispvstationtask(yesterday,yesterday);
|
|
// analysisService.analysispvstationtask(yesterday,yesterday);
|
|
|
|
|
|
- analysisNewService.savaAnalysismain(yesterday,yesterday);
|
|
|
|
- analysisNewService.saveAnalysisTableBottom(yesterday,yesterday);
|
|
|
|
- analysisNewService.saveWindProject(yesterday,yesterday);
|
|
|
|
- analysisNewService.savePvProject(yesterday,yesterday);
|
|
|
|
- analysisNewService.saveWindStation(yesterday,yesterday);
|
|
|
|
- analysisNewService.savePvStation(yesterday,yesterday);
|
|
|
|
|
|
+ analysisNewService.savaAnalysismain(yesterday, yesterday);
|
|
|
|
+ analysisNewService.saveAnalysisTableBottom(yesterday, yesterday);
|
|
|
|
+ analysisNewService.saveWindProject(yesterday, yesterday);
|
|
|
|
+// analysisNewService.savePvProject(yesterday,yesterday);
|
|
|
|
+ analysisNewService.saveWindStation(yesterday, yesterday);
|
|
|
|
+// analysisNewService.savePvStation(yesterday,yesterday);
|
|
|
|
+ analysisNewService.saveCompany(yesterday, yesterday);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Scheduled(cron = "0 0 20 * * ?")
|
|
|
|
+ //或直接指定时间间隔,例如:5秒
|
|
|
|
+ //@Scheduled(fixedRate=5000)
|
|
|
|
+ private void analysisGfTasks() {
|
|
|
|
+// String yesterday = DateUtils.getYesterdayStr("yyyy-MM-dd");
|
|
|
|
+ String yesterday = DateUtils.toDate1(DateUtils.today());
|
|
|
|
+ try {
|
|
|
|
+// analysisService.toblebottomtask(yesterday,yesterday);
|
|
|
|
+// analysisService.analysiswindprojecttask(yesterday,yesterday);
|
|
|
|
+// analysisService.analysispvprojecttask(yesterday,yesterday);
|
|
|
|
+// analysisService.analysiswindstationtask(yesterday,yesterday);
|
|
|
|
+// analysisService.analysispvstationtask(yesterday,yesterday);
|
|
|
|
+
|
|
|
|
+ analysisNewService.savaAnalysisGfmain(yesterday, yesterday);
|
|
|
|
+ analysisNewService.saveAnalysisGfTableBottom(yesterday, yesterday);
|
|
|
|
+// analysisNewService.saveWindProject(yesterday,yesterday);
|
|
|
|
+ analysisNewService.savePvProject(yesterday, yesterday);
|
|
|
|
+// analysisNewService.saveWindStation(yesterday,yesterday);
|
|
|
|
+ analysisNewService.savePvStation(yesterday, yesterday);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|