瀏覽代碼

修改获取应急任务列表代码

tags/v1.2.0^2
wanjing 1 年之前
父節點
當前提交
7d2ac13b6d
共有 1 個檔案被更改,包括 7 行新增5 行删除
  1. +7
    -5
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/mission/query/QueryEmergencyListService.java

+ 7
- 5
tuoheng-admin/src/main/java/com/tuoheng/admin/service/mission/query/QueryEmergencyListService.java 查看文件

@@ -67,12 +67,14 @@ public class QueryEmergencyListService {
Map<Integer, AirPortStatusVO> airPortStatusVOMap = getAirPortStatusVOMap(missionList);
AirPortStatusVO airPortStatusVO;
for (EmergencyMissionVO emergencyMissionVO : emergencyMissionVOList) {
airPortStatusVO = airPortStatusVOMap.get(emergencyMissionVO.getAirportId());
if (ObjectUtil.isNotNull(airPortStatusVO)) {
emergencyMissionVO.setAirportStatus(airPortStatusVO.getMsg());
if (ObjectUtil.isNotNull(airPortStatusVOMap)) {
airPortStatusVO = airPortStatusVOMap.get(emergencyMissionVO.getAirportId());
if (ObjectUtil.isNotNull(airPortStatusVO)) {
emergencyMissionVO.setAirportStatus(airPortStatusVO.getMsg());
}
}
}
return JsonResult.success(missionList);
return JsonResult.success(emergencyMissionVOList);
}

/**
@@ -97,7 +99,7 @@ public class QueryEmergencyListService {
String airPortStatusStr = HttpUtils.sendGet(url, param);
if (StringUtils.isEmpty(airPortStatusStr)) {
log.info("调用机场平台,查询飞行状态:机场接口返回数据为空,查询飞行状态失败");
throw new ServiceException("机场接口返回数据为空,查询飞行状态失败");
return null;
}
JsonResult jsonResult = JacksonUtil.json2pojo(airPortStatusStr, JsonResult.class);


Loading…
取消
儲存