Commit 73f95aa7 authored by tangwei's avatar tangwei

解决冲突

parents 0f0e8d80 67d10af3
...@@ -26,6 +26,7 @@ import org.typroject.tyboot.component.emq.EmqxListener; ...@@ -26,6 +26,7 @@ import org.typroject.tyboot.component.emq.EmqxListener;
import javax.annotation.PostConstruct; import javax.annotation.PostConstruct;
import java.util.Date; import java.util.Date;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
@Component @Component
...@@ -75,8 +76,8 @@ public class MaintenanceResultHandlerMessage extends EmqxListener { ...@@ -75,8 +76,8 @@ public class MaintenanceResultHandlerMessage extends EmqxListener {
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){ if(warningId>0){
hygfMaintenanceTickets = hygfMaintenanceTicketsMapper.selectOne(new QueryWrapper<HYGFMaintenanceTickets>().eq("warning_id", warningId)); List<HYGFMaintenanceTickets> hygfMaintenanceTicketsList = hygfMaintenanceTicketsMapper.selectList(new QueryWrapper<HYGFMaintenanceTickets>().eq("warning_id", warningId));
if (ObjectUtil.isNotEmpty(hygfMaintenanceTickets)) { if (hygfMaintenanceTicketsList.size()>0) {
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