Commit f57ed350b355595db4efc7acf716e9c175dde152
1 parent
4f90b28b
添加设置mobilePosition中ChannelId #1054
Showing
2 changed files
with
2 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/NotifyRequestProcessor.java
| ... | ... | @@ -319,6 +319,7 @@ public class NotifyRequestProcessor extends SIPRequestProcessorParent implements |
| 319 | 319 | logger.info("[收到Notify-Alarm]:{}/{}", device.getDeviceId(), deviceAlarm.getChannelId()); |
| 320 | 320 | if ("4".equals(deviceAlarm.getAlarmMethod())) { |
| 321 | 321 | MobilePosition mobilePosition = new MobilePosition(); |
| 322 | + mobilePosition.setChannelId(channelId); | |
| 322 | 323 | mobilePosition.setCreateTime(DateUtil.getNow()); |
| 323 | 324 | mobilePosition.setDeviceId(deviceAlarm.getDeviceId()); |
| 324 | 325 | mobilePosition.setTime(deviceAlarm.getAlarmTime()); | ... | ... |
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/event/request/impl/message/notify/cmd/AlarmNotifyMessageHandler.java
| ... | ... | @@ -137,6 +137,7 @@ public class AlarmNotifyMessageHandler extends SIPRequestProcessorParent impleme |
| 137 | 137 | MobilePosition mobilePosition = new MobilePosition(); |
| 138 | 138 | mobilePosition.setCreateTime(DateUtil.getNow()); |
| 139 | 139 | mobilePosition.setDeviceId(deviceAlarm.getDeviceId()); |
| 140 | + mobilePosition.setChannelId(channelId); | |
| 140 | 141 | mobilePosition.setTime(deviceAlarm.getAlarmTime()); |
| 141 | 142 | mobilePosition.setLongitude(deviceAlarm.getLongitude()); |
| 142 | 143 | mobilePosition.setLatitude(deviceAlarm.getLatitude()); | ... | ... |