Browse Source

Merge branch 'develop' of gitadmin/tuoheng_air_monitor into release

tags/v1.0.2
chengwang 1 year ago
parent
commit
217ca8dc76
2 changed files with 14 additions and 17 deletions
  1. +3
    -9
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/dto/MountEquipment.java
  2. +11
    -8
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/GetAirportDetailService.java

+ 3
- 9
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/dto/MountEquipment.java View File

package com.tuoheng.admin.entity.dto; package com.tuoheng.admin.entity.dto;


import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/** /**
* @Author ChengWang * @Author ChengWang
* @Date 2023/7/17 * @Date 2023/7/17
*/ */
@Data @Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class MountEquipment { public class MountEquipment {
/** /**
* id * id
/** /**
* 类型 * 类型
*/ */
private Integer type;
private String type;
/** /**
*
*序号
*/ */
private Integer series; private Integer series;
/** /**
*/ */
private String imaging; private String imaging;
/** /**
*
*制造商
*/ */
private String manufacturer; private String manufacturer;
/** /**

+ 11
- 8
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/GetAirportDetailService.java View File

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);
}
if(Objects.nonNull(mountJson)){
String strJson = mountJson.getString("mountEquipmentList");

log.info("参数信息,strJson={}",strJson);
if(StringUtils.isNotEmpty(strJson)){
String mountEquipmentList = strJson;
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);

Loading…
Cancel
Save