| | |
| | | if (parentPlatform == null) { |
| | | return; |
| | | } |
| | | logger.info("[发送报警通知] {}/{}->{},{}: {}", parentPlatform.getServerGBId(), deviceAlarm.getChannelId(), |
| | | logger.info("[发送报警通知]平台: {}/{}->{},{}: {}", parentPlatform.getServerGBId(), deviceAlarm.getChannelId(), |
| | | deviceAlarm.getLongitude(), deviceAlarm.getLatitude(), JSON.toJSONString(deviceAlarm)); |
| | | String characterSet = parentPlatform.getCharacterSet(); |
| | | StringBuffer deviceStatusXml = new StringBuffer(600); |
| | |
| | | .append("<DeviceID>" + deviceAlarm.getChannelId() + "</DeviceID>\r\n") |
| | | .append("<AlarmPriority>" + deviceAlarm.getAlarmPriority() + "</AlarmPriority>\r\n") |
| | | .append("<AlarmMethod>" + deviceAlarm.getAlarmMethod() + "</AlarmMethod>\r\n") |
| | | .append("<AlarmTime>" + deviceAlarm.getAlarmTime() + "</AlarmTime>\r\n") |
| | | .append("<AlarmTime>" + DateUtil.yyyy_MM_dd_HH_mm_ssToISO8601(deviceAlarm.getAlarmTime()) + "</AlarmTime>\r\n") |
| | | .append("<AlarmDescription>" + deviceAlarm.getAlarmDescription() + "</AlarmDescription>\r\n") |
| | | .append("<Longitude>" + deviceAlarm.getLongitude() + "</Longitude>\r\n") |
| | | .append("<Latitude>" + deviceAlarm.getLatitude() + "</Latitude>\r\n") |