Commit 1b4afc39 authored by chenzhao's avatar chenzhao

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

parent ad544458
......@@ -303,9 +303,9 @@ public class HealthStatusIndicatorServiceImpl {
int flag = ObjectUtils.isEmpty(idxBizPvWarningRecords) || WarningNameEnum
.getCode(level) > WarningNameEnum.getCode(idxBizPvWarningRecords.get(0).getWarningName()) ? 0
: 1;
// Boolean timeFlag = format
// .equals(idxBizPvHealthIndices.get(idxBizPvHealthIndices.size() - 1).getRecDate());
if (!level.equals("") && flag == 0) {
Boolean timeFlag = format
.equals(idxBizPvHealthIndices.get(idxBizPvHealthIndices.size() - 1).getRecDate());
if (!level.equals("") && flag == 0 && timeFlag) {
IdxBizPvWarningRecord idxBizPvWarningRecord = new IdxBizPvWarningRecord();
idxBizPvWarningRecord.setKks(idxBizPvHealthIndices.get(idxBizPvHealthIndices.size() - 1).getKks());
idxBizPvWarningRecord
......
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