事件上报新增deviceEvent

This commit is contained in:
huguanghan 2024-11-04 10:50:44 +08:00
parent 35308ae672
commit 6ac917d4e8

View File

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