| | |
| | | DeviceDto deviceInfo = JSONObject.parseObject(message, DeviceDto.class); |
| | | boolean checkFlag = |
| | | "RINGING".equals(deviceInfo.getCallstatus()) && StringUtils.isNotEmpty(deviceInfo.getOri_number()); |
| | | if ("abort".equals(deviceInfo.getStatus()) || checkFlag) { |
| | | if (checkFlag) { |
| | | logger.info("收到设备报警信息:{}", message); |
| | | ComPropertyAlarm comPropertyAlarm = new ComPropertyAlarm(); |
| | | comPropertyAlarm.setSerialNo(deviceInfo.getUserid()); |
| | | comPropertyAlarm.setSerialNo(deviceInfo.getOri_number()); |
| | | comPropertyAlarm.setReceiveNo(deviceInfo.getUserid()); |
| | | comPropertyAlarm.setStatus(0); |
| | | comPropertyAlarm.setCreateTime(new Date()); |
| | | comPropertyAlarm.setType(1); |