Commit 8eaedb33 authored by caotao's avatar caotao

状态显示错误问题处理

parent cd603e50
...@@ -73,6 +73,12 @@ public class MaintenanceResultHandlerMessage extends EmqxListener { ...@@ -73,6 +73,12 @@ public class MaintenanceResultHandlerMessage extends EmqxListener {
HYGFMaintenanceTickets hygfMaintenanceTickets = new HYGFMaintenanceTickets(); HYGFMaintenanceTickets hygfMaintenanceTickets = new HYGFMaintenanceTickets();
String stationid = specialMap.get("stationId") == null ? null : specialMap.get("stationId").toString(); String stationid = specialMap.get("stationId") == null ? null : specialMap.get("stationId").toString();
Long warningId = specialMap.containsKey("warningId") ? Long.valueOf(specialMap.get("warningId").toString()) : 0L; Long warningId = specialMap.containsKey("warningId") ? Long.valueOf(specialMap.get("warningId").toString()) : 0L;
if(warningId>0){
hygfMaintenanceTickets = hygfMaintenanceTicketsMapper.selectOne(new QueryWrapper<HYGFMaintenanceTickets>().eq("warning_id", warningId));
if (ObjectUtil.isNotEmpty(hygfMaintenanceTickets)) {
return;
}
}
String sncode = specialMap.containsKey("inverterSncode")?specialMap.get("inverterSncode").toString():""; String sncode = specialMap.containsKey("inverterSncode")?specialMap.get("inverterSncode").toString():"";
String mantainancePersonId = specialMap.get("maintenancePersonId").toString(); String mantainancePersonId = specialMap.get("maintenancePersonId").toString();
JpStation jpStation = jpStationMapper.selectOne(new QueryWrapper<JpStation>().eq("third_station_id", stationid)); JpStation jpStation = jpStationMapper.selectOne(new QueryWrapper<JpStation>().eq("third_station_id", stationid));
......
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