|
@@ -1,6 +1,9 @@
|
|
|
package com.gyee.generation.task;
|
|
|
|
|
|
|
|
|
+import cn.hutool.core.date.DateField;
|
|
|
+import cn.hutool.core.date.DateTime;
|
|
|
+import cn.hutool.core.date.DateUtil;
|
|
|
import com.gyee.common.util.DateUtils;
|
|
|
import com.gyee.generation.service.*;
|
|
|
import com.gyee.generation.service.StationPower.StationPowerService;
|
|
@@ -1089,7 +1092,7 @@ public class SaticSchedulePgTask {
|
|
|
|
|
|
/**
|
|
|
* 设备风资源统计调度
|
|
|
- * 每天2点执行一次
|
|
|
+ * 每天23:59:00点执行一次
|
|
|
*/
|
|
|
@XxlJob("wtwindDayInfo_PG")
|
|
|
public void wtwindDayInfo_PG() {
|
|
@@ -1097,13 +1100,33 @@ public class SaticSchedulePgTask {
|
|
|
|
|
|
XxlJobHelper.log("设备风资源统计调度程序执行开始!........");
|
|
|
try {
|
|
|
- wpwindDayInfoService.calWpwindDayInfo(new Date());
|
|
|
+ wtwindDayInfoService.calWtwindDayInfo(new Date());
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
XxlJobHelper.log("设备风资源统计调度任务处理完成!........");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+// @XxlJob("wtwindDayInfo_PG")
|
|
|
+// public void wtwindDayInfo_PG() {
|
|
|
+//
|
|
|
+// DateTime dateTime = DateUtil.beginOfYear(new Date());
|
|
|
+// DateTime dateTimeEnd = DateUtil.endOfDay(dateTime);
|
|
|
+// int ilength = DateUtil.dayOfYear(new Date());
|
|
|
+//
|
|
|
+// for (int i = 0; i < ilength; i++) {
|
|
|
+// try {
|
|
|
+// DateTime offset = DateUtil.offset(dateTimeEnd, DateField.DAY_OF_MONTH, i);
|
|
|
+// wtwindDayInfoService.calWtwindDayInfo(offset);
|
|
|
+// } catch (Exception e) {
|
|
|
+// e.printStackTrace();
|
|
|
+// }
|
|
|
+// }
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 场站风资源统计调度
|
|
|
* 每天2点执行一次
|
|
@@ -1114,7 +1137,7 @@ public class SaticSchedulePgTask {
|
|
|
|
|
|
XxlJobHelper.log("场站风资源统计调度程序执行开始!........");
|
|
|
try {
|
|
|
- wtwindDayInfoService.calWtwindDayInfo(new Date());
|
|
|
+ wpwindDayInfoService.calWpwindDayInfo(new Date());
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
@@ -1765,7 +1788,7 @@ public class SaticSchedulePgTask {
|
|
|
|
|
|
Date date = new Date();
|
|
|
windPowerInfo1Service.writeBoosterStation(date);
|
|
|
-// date.setTime(1735660800000L);
|
|
|
+// date.setTime(1753977600000L);
|
|
|
// windPowerInfo1Service.writeBoosterStationHistory(date);
|
|
|
|
|
|
}
|