事件上报新增deviceEvent
This commit is contained in:
parent
35308ae672
commit
6ac917d4e8
@ -318,7 +318,11 @@ public class NodeMessageServiceImpl implements NodeMessageService {
|
|||||||
deviceEventInfo.setEventLevel(0);
|
deviceEventInfo.setEventLevel(0);
|
||||||
deviceEventInfo.setConfirmed(0);
|
deviceEventInfo.setConfirmed(0);
|
||||||
if (!StringUtils.isEmpty(eventType) && eventType.equals("遥信变位")){
|
if (!StringUtils.isEmpty(eventType) && eventType.equals("遥信变位")){
|
||||||
deviceEventInfo.setEventText(fieldName + eventType + "负归");
|
if (item.getAttrValue().equals(0)){
|
||||||
|
deviceEventInfo.setEventText(fieldName + "复归");
|
||||||
|
}else {
|
||||||
|
deviceEventInfo.setEventText(fieldName + "动作");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
deviceEventInfo.setEventText(fieldName + eventType + ",属性值为:"+item.getAttrValue()+",越限值为:"+item.getLimitValue());
|
deviceEventInfo.setEventText(fieldName + eventType + ",属性值为:"+item.getAttrValue()+",越限值为:"+item.getLimitValue());
|
||||||
|
Loading…
Reference in New Issue
Block a user