| | |
| | | GlobalAlarmData globalAlarmData = new GlobalAlarmData() |
| | | .setId(ardAlarmWall.getId()) |
| | | .setName(ardAlarmWall.getWallName()) |
| | | .setAlarmTime(ardAlarmWall.getCreateTime()) |
| | | .setAlarmTime(ardAlarmWall.getAlarmTime()) |
| | | .setLongitude(ardAlarmWall.getLongitude()) |
| | | .setLatitude(ardAlarmWall.getLatitude()) |
| | | .setCount(ardAlarmWall.getCount()) |
| | |
| | | @Override |
| | | public Object updateAlarmViewTime(GlobalAlarmCondition condition) { |
| | | SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | SimpleDateFormat fmtms = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); |
| | | switch (condition.getCommand()) { |
| | | case 1001: |
| | | ArdAlarmStealelec ardAlarmStealelec = ardAlarmStealelecMapper.selectByPrimaryKey(condition.getId()); |
| | |
| | | ArdAlarmWall ardAlarmWall = ardAlarmWallMapper.selectArdAlarmWallById(condition.getId()); |
| | | if (StringUtils.isNotNull(ardAlarmWall)) { |
| | | String userId = ardAlarmWall.getUserId(); |
| | | String alarmTime = fmt.format(ardAlarmWall.getCreateTime()); |
| | | String alarmTime = fmtms.format(ardAlarmWall.getAlarmTime()); |
| | | ardAlarmWallMapper.updateViewTimeByUserId(userId, alarmTime, DateUtils.getTime()); |
| | | return ardAlarmWall; |
| | | } |
| | |
| | | case "运动目标检测": aType="sys_radar_move";break; |
| | | case "热源检测": aType="sys_radar_fire";break; |
| | | case "雷达抽油机停机": aType="sys_radar_pump";break; |
| | | default: aType=alarmType;break; |
| | | } |
| | | guideTask.setAlarmType(aType); |
| | | //通道(通过日夜时间研判) |