Commit c7c2e34f authored by caotao's avatar caotao

预警问题回溯如果工况变量值为空时导致查询报错问题处理。

parent 7fb4bc31
......@@ -90,6 +90,7 @@ public class WarningRecordStatusMessage extends EmqxListener {
list.add(fanWarningRecord);
}
if(list.size()>0){
log.info("XXXXXXXXXXXX风电修改预警状态XXXXXXXXXXXXXXXXXX",JSON.toJSONString(list));
fanWaringRecordMapper.updateStatusByTs(list);
}
......@@ -118,6 +119,7 @@ public class WarningRecordStatusMessage extends EmqxListener {
list.add(pvWarningRecord);
}
if(list.size()>0){
log.info("XXXXXXXXXXXX光伏修改预警状态XXXXXXXXXXXXXXXXXX",JSON.toJSONString(list));
pvWaringRecordMapper.updateStatusByTs(list);
}
}
......
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