事件上报新增deviceEvent

This commit is contained in:
huguanghan 2024-11-04 10:52:59 +08:00
parent 6ac917d4e8
commit 01b60f6ba2

View File

@ -319,9 +319,9 @@ public class NodeMessageServiceImpl implements NodeMessageService {
deviceEventInfo.setConfirmed(0); deviceEventInfo.setConfirmed(0);
if (!StringUtils.isEmpty(eventType) && eventType.equals("遥信变位")){ if (!StringUtils.isEmpty(eventType) && eventType.equals("遥信变位")){
if (item.getAttrValue().equals(0)){ if (item.getAttrValue().equals(0)){
deviceEventInfo.setEventText(fieldName + "复归"); deviceEventInfo.setEventText(fieldName + " 复归");
}else { }else {
deviceEventInfo.setEventText(fieldName + "动作"); deviceEventInfo.setEventText(fieldName + " 动作");
} }
} }
else{ else{