device event修改
This commit is contained in:
parent
292f0b07f2
commit
8c767b4aaa
@ -363,10 +363,14 @@ public class NodeMessageServiceImpl extends TextWebSocketHandler implements Node
|
||||
if (!StringUtils.isEmpty(eventType) && eventType.equals("遥信变位")) {
|
||||
if (item.getAttrValue().equals(0)) {
|
||||
deviceEventInfo.setEventText(fieldName + " 复归");
|
||||
|
||||
deviceEventInfo.setEventLevel(0);
|
||||
} else {
|
||||
deviceEventInfo.setEventText(fieldName + " 动作");
|
||||
Integer level = dataService.eventLevelMap.get(model).get(fieldName);
|
||||
log.info("缓存为:{}",dataService.eventLevelMap.get(model));
|
||||
log.info("level:{}",level);
|
||||
log.info("fieldname{}",fieldName);
|
||||
deviceEventInfo.setEventLevel( level == null ? 0 : level);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user