|
|
@@ -199,14 +199,19 @@ public class DspCallBackService { |
|
|
|
warning.setLocation(gaodeAddress); |
|
|
|
} |
|
|
|
|
|
|
|
// 该巡检任务存在应急任务,将后面发现的预警直接设置为不展示 |
|
|
|
ThMission emergencyMission = missionMapper.selectOne(new LambdaQueryWrapper<ThMission>() |
|
|
|
.eq(ThMission::getEmergencyDataMissionId, question.getMissionId()) |
|
|
|
.eq(ThMission::getMark, MarkEnum.VALID.getCode())); |
|
|
|
if (ObjectUtils.isNotEmpty(emergencyMission)) { |
|
|
|
ThMission thMission = missionMapper.selectById(question.getMissionId()); |
|
|
|
if (thMission.getType() == AccidentTaskEnum.ACCIDENT_TASK.getCode()) { |
|
|
|
warning.setFlag(FlagEnum.ACCIDENT.getCode()); |
|
|
|
} else { |
|
|
|
warning.setFlag(FlagEnum.INSPECTION_ACCIDENT.getCode()); |
|
|
|
// 该巡检任务存在应急任务,将后面发现的预警直接设置为不展示 |
|
|
|
ThMission emergencyMission = missionMapper.selectOne(new LambdaQueryWrapper<ThMission>() |
|
|
|
.eq(ThMission::getEmergencyDataMissionId, question.getMissionId()) |
|
|
|
.eq(ThMission::getMark, MarkEnum.VALID.getCode())); |
|
|
|
if (ObjectUtils.isNotEmpty(emergencyMission)) { |
|
|
|
warning.setFlag(FlagEnum.ACCIDENT.getCode()); |
|
|
|
} else { |
|
|
|
warning.setFlag(FlagEnum.INSPECTION_ACCIDENT.getCode()); |
|
|
|
} |
|
|
|
} |
|
|
|
warningList.add(warning); |
|
|
|
} |