|
|
|
|
|
|
|
|
package com.tuoheng.admin.service.third.airport; |
|
|
package com.tuoheng.admin.service.third.airport; |
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.tuoheng.admin.entity.dto.AirportDetailDto; |
|
|
import com.tuoheng.admin.entity.dto.AirportDetailDto; |
|
|
|
|
|
import com.tuoheng.admin.entity.dto.MountEquipment; |
|
|
import com.tuoheng.common.core.config.common.CommonConfig; |
|
|
import com.tuoheng.common.core.config.common.CommonConfig; |
|
|
import com.tuoheng.common.core.utils.HttpUtils; |
|
|
import com.tuoheng.common.core.utils.HttpUtils; |
|
|
import com.tuoheng.common.core.utils.JacksonUtil; |
|
|
import com.tuoheng.common.core.utils.JacksonUtil; |
|
|
import com.tuoheng.common.core.utils.JsonResult; |
|
|
import com.tuoheng.common.core.utils.JsonResult; |
|
|
|
|
|
import com.tuoheng.common.core.utils.StringUtils; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import org.springframework.stereotype.Service; |
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
import java.util.Objects; |
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|
|
|
|
|
|
mountJson.getString("searchlightName") |
|
|
mountJson.getString("searchlightName") |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
JSONObject metJson = dataObject.getJSONObject("mountEquipmentList"); |
|
|
|
|
|
if(ObjectUtil.isNotNull(metJson)){ |
|
|
|
|
|
//json-->string |
|
|
|
|
|
String mountEquipmentList = metJson.toJSONString(); |
|
|
|
|
|
if(StringUtils.isNotEmpty(mountEquipmentList)){ |
|
|
|
|
|
List<MountEquipment> mountEquipments = JSONObject.parseArray(mountEquipmentList, MountEquipment.class); |
|
|
|
|
|
vo.setMountEquipmentList(mountEquipments); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
vo.setStatus(dataObject.getString("status")); |
|
|
vo.setStatus(dataObject.getString("status")); |
|
|
return JsonResult.success(vo); |
|
|
return JsonResult.success(vo); |
|
|
} |
|
|
} |