| | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DictUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.device.camera.domain.CameraCmd; |
| | | import com.ruoyi.device.external.domain.ArdEquipExternal; |
| | | import com.ruoyi.device.external.mapper.ArdEquipExternalMapper; |
| | | import com.ruoyi.device.radar.mapper.ArdEquipRadarMapper; |
| | |
| | | import com.ruoyi.utils.tube.GeoPoint; |
| | | import com.ruoyi.utils.tube.TubeTools; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.gavaghan.geodesy.GlobalCoordinates; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | } else { |
| | | //否则比对更新时间 |
| | | Date lastUpdateTime = lastMoveData.getUpdateTime(); |
| | | |
| | | Date lastGuideTime = lastMoveData.getGuideTime(); |
| | | long secDatePoor = DateUtils.getSecDatePoor(alarmTime,lastUpdateTime); |
| | | if (secDatePoor <= radarMergeTime) { |
| | |
| | | int index = name.indexOf("("); |
| | | String alarmpointName = name.substring(0, index); |
| | | //获取雷达所在塔上的大光电 |
| | | String cameraIdWithTower = ardEquipRadarMapper.getCameraByRadar(radarId); |
| | | if (StringUtils.isNotNull(cameraIdWithTower) && StringUtils.isNotEmpty(cameraIdWithTower)) { |
| | | log.debug("获取到雷达塔上的光电:" + cameraIdWithTower); |
| | | ArdCameras cameraWithTower = ardEquipRadarMapper.getCameraByRadar(radarId); |
| | | if (StringUtils.isNotNull(cameraWithTower)) { |
| | | log.debug("获取到雷达塔上的光电:" + cameraWithTower.getId()); |
| | | //如果雷达塔上有光电 |
| | | messagesEnqueued(cameraIdWithTower, alarmId, alarmType, createTime, 1, 1, coordinate); |
| | | messagesEnqueued(cameraWithTower.getId(), alarmId, alarmType, createTime, 1, 1, coordinate); |
| | | } else { |
| | | log.debug("未获取到雷达塔上的光电,无法引导"); |
| | | } |
| | |
| | | ArdAlarmpointsWell ardAlarmpointsWell = ardAlarmpointsWellMapper.selectArdAlarmpointsWellByWellId(alarmpointName); |
| | | if (StringUtils.isNotNull(ardAlarmpointsWell) && StringUtils.isNotEmpty(ardAlarmpointsWell.getCameraId())) { |
| | | String cameraId = ardAlarmpointsWell.getCameraId(); |
| | | if (cameraId.equals(cameraIdWithTower)) { |
| | | if (cameraId.equals(cameraWithTower.getId())) { |
| | | return; |
| | | } |
| | | log.info("获取到报警点关联的光电:" + cameraId); |