Commit 44e98378 authored by chenzhao's avatar chenzhao

修改分析光伏预警生成数据不对

parent 1b4afc39
...@@ -2430,7 +2430,6 @@ public class CommonServiceImpl { ...@@ -2430,7 +2430,6 @@ public class CommonServiceImpl {
* *
* @param fanHealthIndices * @param fanHealthIndices
*/ */
@Async
public void insertFanDataTDEngine(ArrayList<FanHealthIndex> fanHealthIndices, String recDate, String analysisType) { public void insertFanDataTDEngine(ArrayList<FanHealthIndex> fanHealthIndices, String recDate, String analysisType) {
idxFanHealthIndexMapper.deleteAllDataByTableName("fan_health_index_latest_data", analysisType); idxFanHealthIndexMapper.deleteAllDataByTableName("fan_health_index_latest_data", analysisType);
// 按时刻 - 测点插入 // 按时刻 - 测点插入
...@@ -2988,7 +2987,6 @@ public class CommonServiceImpl { ...@@ -2988,7 +2987,6 @@ public class CommonServiceImpl {
* *
* @param pvHealthIndices * @param pvHealthIndices
*/ */
@Async
public void insertPvDataTDEngine(ArrayList<PvHealthIndex> pvHealthIndices, String recDate, String analysisType) { public void insertPvDataTDEngine(ArrayList<PvHealthIndex> pvHealthIndices, String recDate, String analysisType) {
idxFanHealthIndexMapper.deleteAllDataByTableName("pv_health_index_latest_data", analysisType); idxFanHealthIndexMapper.deleteAllDataByTableName("pv_health_index_latest_data", analysisType);
......
...@@ -167,7 +167,6 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -167,7 +167,6 @@ public class HealthStatusIndicatorServiceImpl {
*/ */
// @Scheduled(cron = "0 0 */1 * * ?") // @Scheduled(cron = "0 0 */1 * * ?")
@Async("async")
public void healthWarningMinuteGF(Date time) { public void healthWarningMinuteGF(Date time) {
String format = DateUtil.format(time, "yyyy-MM-dd HH:mm:00"); String format = DateUtil.format(time, "yyyy-MM-dd HH:mm:00");
// Date date = DateUtils.dateAddHours(time, -8); // Date date = DateUtils.dateAddHours(time, -8);
...@@ -545,7 +544,6 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -545,7 +544,6 @@ public class HealthStatusIndicatorServiceImpl {
// //
// } // }
@Async("async")
public void healthWarningMinuteGF(Date time, String gatewayId) { public void healthWarningMinuteGF(Date time, String gatewayId) {
if (!openHealth) { if (!openHealth) {
return; return;
...@@ -753,7 +751,6 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -753,7 +751,6 @@ public class HealthStatusIndicatorServiceImpl {
*/ */
// @Scheduled(cron = "0 0 0/1 * * ?") // @Scheduled(cron = "0 0 0/1 * * ?")
@Async("async")
public void healthWarningHourGF() { public void healthWarningHourGF() {
if (!openHealth) { if (!openHealth) {
return; return;
...@@ -959,7 +956,6 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -959,7 +956,6 @@ public class HealthStatusIndicatorServiceImpl {
// @Scheduled(cron = "0 0 0/1 * * ?") // @Scheduled(cron = "0 0 0/1 * * ?")
// @Scheduled(cron = "0 0/5 * * * ?") // @Scheduled(cron = "0 0/5 * * * ?")
@Async("async")
public void healthWarningHourGFNew() { public void healthWarningHourGFNew() {
if (!openHealth) { if (!openHealth) {
...@@ -1181,7 +1177,6 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -1181,7 +1177,6 @@ public class HealthStatusIndicatorServiceImpl {
*/ */
// @Scheduled(cron = "0 0 0 0/1 * ? ") // @Scheduled(cron = "0 0 0 0/1 * ? ")
@Async("async")
public void healthWarningDayGF() { public void healthWarningDayGF() {
if (!openHealth) { if (!openHealth) {
return; return;
...@@ -1390,7 +1385,6 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -1390,7 +1385,6 @@ public class HealthStatusIndicatorServiceImpl {
} }
// @Scheduled(cron = "0 0 0 0/1 * ? ") // @Scheduled(cron = "0 0 0 0/1 * ? ")
@Async("async")
public void healthWarningDayGFNew() { public void healthWarningDayGFNew() {
if (!openHealth) { if (!openHealth) {
return; return;
...@@ -1611,7 +1605,6 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -1611,7 +1605,6 @@ public class HealthStatusIndicatorServiceImpl {
} }
// @Scheduled(cron = "0 0 */1 * * ?") // @Scheduled(cron = "0 0 */1 * * ?")
@Async("async")
public void healthWarningMinute(Date time) { public void healthWarningMinute(Date time) {
if (!openHealth) { if (!openHealth) {
return; return;
...@@ -1836,7 +1829,6 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -1836,7 +1829,6 @@ public class HealthStatusIndicatorServiceImpl {
fetchDataFan(tdFanWarningRecordList, stationMap); fetchDataFan(tdFanWarningRecordList, stationMap);
} }
@Async("async")
// @PostConstruct // @PostConstruct
public void healthWarningMinute(Date time, String gatewayId) { public void healthWarningMinute(Date time, String gatewayId) {
if (!openHealth) { if (!openHealth) {
...@@ -2069,7 +2061,6 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -2069,7 +2061,6 @@ public class HealthStatusIndicatorServiceImpl {
*/ */
// @Scheduled(cron = "0 0 0/1 * * ?") // @Scheduled(cron = "0 0 0/1 * * ?")
@Async("async")
// @PostConstruct // @PostConstruct
public void healthWarningHour() { public void healthWarningHour() {
// if (!openHealth) { // if (!openHealth) {
...@@ -2294,7 +2285,6 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -2294,7 +2285,6 @@ public class HealthStatusIndicatorServiceImpl {
} }
// @Scheduled(cron = "0 0 0/1 * * ?") // @Scheduled(cron = "0 0 0/1 * * ?")
@Async("async")
public void healthWarningHourNew() { public void healthWarningHourNew() {
if (!openHealth) { if (!openHealth) {
return; return;
...@@ -2517,7 +2507,6 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -2517,7 +2507,6 @@ public class HealthStatusIndicatorServiceImpl {
*/ */
// @Scheduled(cron = "0 0 0 0/1 * ? ") // @Scheduled(cron = "0 0 0 0/1 * ? ")
@Async("async")
public void healthWarningDay() { public void healthWarningDay() {
if (!openHealth) { if (!openHealth) {
return; return;
...@@ -2734,7 +2723,6 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -2734,7 +2723,6 @@ public class HealthStatusIndicatorServiceImpl {
} }
// @Scheduled(cron = "0 0 0 0/1 * ? ") // @Scheduled(cron = "0 0 0 0/1 * ? ")
@Async("async")
public void healthWarningDayNew() { public void healthWarningDayNew() {
if (!openHealth) { if (!openHealth) {
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment