deviceEvent内容增加attrCode
This commit is contained in:
parent
9777863084
commit
e2580dbcbe
@ -369,18 +369,18 @@ public class NodeMessageServiceImpl extends TextWebSocketHandler implements Node
|
||||
deviceEventInfo.setConfirmed(0);
|
||||
if (!StringUtils.isEmpty(eventType) && eventType.equals("遥信变位")) {
|
||||
if (item.getAttrValue().equals(0)) {
|
||||
deviceEventInfo.setEventText(fieldName + " 复归");
|
||||
deviceEventInfo.setEventText(item.getAttrCode()+fieldName + " 复归");
|
||||
|
||||
deviceEventInfo.setEventLevel(0);
|
||||
} else {
|
||||
deviceEventInfo.setEventText(fieldName + " 动作");
|
||||
deviceEventInfo.setEventText(item.getAttrCode()+fieldName + " 动作");
|
||||
Integer level = dataService.eventLevelMap.get(model).get(item.getAttrCode());
|
||||
log.info("level:{}",level);
|
||||
log.info("fieldname{}",fieldName);
|
||||
deviceEventInfo.setEventLevel( level == null ? 0 : level);
|
||||
}
|
||||
} else {
|
||||
deviceEventInfo.setEventText(fieldName + eventType + ",属性值为:" + item.getAttrValue() + ",越限值为:" + item.getLimitValue());
|
||||
deviceEventInfo.setEventText(item.getAttrCode()+fieldName + eventType + ",属性值为:" + item.getAttrValue() + ",越限值为:" + item.getLimitValue());
|
||||
deviceEventInfo.setEventLevel(1);
|
||||
}
|
||||
valueList.add(deviceEventInfo);
|
||||
|
Loading…
Reference in New Issue
Block a user