|
@@ -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();
|