@@ -57,12 +57,15 @@ public class QueryDroneDataService { | |||
throw new ServiceException("没有正在飞行的任务"); | |||
} | |||
log.info("获取无人机数据信息1, missionId={}, emergencyDataMissionId={}", mission.getId(), mission.getEmergencyDataMissionId()); | |||
Integer missionId; | |||
if (0 == mission.getEmergencyDataMissionId()) { | |||
missionId = mission.getId(); | |||
} else { | |||
missionId = mission.getEmergencyDataMissionId(); | |||
} | |||
log.info("获取无人机数据信息2, missionId={}", missionId); | |||
Map<String, Object> map = new HashMap<>(); | |||
map.put("id", missionId); |