事件上报新增deviceEvent

This commit is contained in:
huguanghan 2024-11-04 10:37:03 +08:00
parent 565931e3a2
commit 10846b3a2e

View File

@ -317,11 +317,11 @@ public class NodeMessageServiceImpl implements NodeMessageService {
}
deviceEventInfo.setEventLevel(0);
deviceEventInfo.setConfirmed(0);
if (!StringUtils.isEmpty(fieldName) && fieldName.equals("遥信变位")){
if (!StringUtils.isEmpty(eventType) && eventType.equals("遥信变位")){
deviceEventInfo.setEventText(fieldName + eventType + "负归");
}
else{
deviceEventInfo.setEventText(fieldName + eventType + "属性值为:"+item.getAttrValue()+",越限值为:"+item.getLimitValue());
deviceEventInfo.setEventText(fieldName + eventType + ",属性值为:"+item.getAttrValue()+",越限值为:"+item.getLimitValue());
}
valueList.add(deviceEventInfo);
}