处理报警和位置上报时使用fromHeader获取deviceId, xml的deviceId作为channelId使用。

This commit is contained in:
648540858
2021-09-27 15:36:41 +08:00
parent 3ae18a5583
commit 497e581e5e
8 changed files with 91 additions and 23 deletions

View File

@@ -13,6 +13,11 @@ public class DeviceAlarm {
*/
private String deviceId;
/**
* 通道Id
*/
private String channelId;
/**
* 报警级别, 1为一级警情, 2为二级警情, 3为三级警情, 4为四级 警情-
*/
@@ -121,4 +126,12 @@ public class DeviceAlarm {
public void setAlarmType(String alarmType) {
this.alarmType = alarmType;
}
public String getChannelId() {
return channelId;
}
public void setChannelId(String channelId) {
this.channelId = channelId;
}
}

View File

@@ -12,6 +12,11 @@ public class MobilePosition {
*/
private String deviceId;
/**
* 通道Id
*/
private String channelId;
/**
* 设备名称
*/
@@ -163,4 +168,12 @@ public class MobilePosition {
public void setCnLat(String cnLat) {
this.cnLat = cnLat;
}
public String getChannelId() {
return channelId;
}
public void setChannelId(String channelId) {
this.channelId = channelId;
}
}