Commit 3131cafe authored by caotao's avatar caotao

预警数据生成异常问题处理

parent 82dd8443
...@@ -2030,7 +2030,7 @@ public class CommonServiceImpl { ...@@ -2030,7 +2030,7 @@ public class CommonServiceImpl {
insertPvDataTDEngine(fanHealthIndices1, format, "按时刻"); insertPvDataTDEngine(fanHealthIndices1, format, "按时刻");
} }
try { try {
logger.info("--------------------response: " + response); // logger.info("--------------------response: " + response);
logger.info("------------------------------------------调用光伏健康指数计算算法结束----------------------------------------"); logger.info("------------------------------------------调用光伏健康指数计算算法结束----------------------------------------");
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);
......
...@@ -516,6 +516,7 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -516,6 +516,7 @@ public class HealthStatusIndicatorServiceImpl {
// idxBizPvWarningRecordService.saveBatch(idxBizPvWarningRecordList); // idxBizPvWarningRecordService.saveBatch(idxBizPvWarningRecordList);
if (CollUtil.isNotEmpty(tdPvWarningRecordList)) { if (CollUtil.isNotEmpty(tdPvWarningRecordList)) {
// tdengine插入 // tdengine插入
log.info("==================光伏按小时产生预警数据成功",JSON.toJSONString(tdPvWarningRecordList));
pvWaringRecordMapper.saveBatchWarningRecords(tdPvWarningRecordList); pvWaringRecordMapper.saveBatchWarningRecords(tdPvWarningRecordList);
} }
// 触发风险模型生成预警处置模块的预警记录 // 触发风险模型生成预警处置模块的预警记录
...@@ -702,6 +703,7 @@ public class HealthStatusIndicatorServiceImpl { ...@@ -702,6 +703,7 @@ public class HealthStatusIndicatorServiceImpl {
} }
// idxBizPvWarningRecordService.saveBatch(idxBizPvWarningRecordList); // idxBizPvWarningRecordService.saveBatch(idxBizPvWarningRecordList);
if (CollUtil.isNotEmpty(tdPvWarningRecordList)) { if (CollUtil.isNotEmpty(tdPvWarningRecordList)) {
log.info("==================光伏按天产生预警数据成功",JSON.toJSONString(tdPvWarningRecordList));
// tdengine插入 // tdengine插入
pvWaringRecordMapper.saveBatchWarningRecords(tdPvWarningRecordList); pvWaringRecordMapper.saveBatchWarningRecords(tdPvWarningRecordList);
} }
......
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