|
|
@@ -107,7 +107,7 @@ public class ThInspectionServiceImpl extends BaseServiceImpl<ThInspectionMapper, |
|
|
|
//这边需要配置到yml文件里面 |
|
|
|
Tenant tenant = tenantMapper.selectById(ShiroUtils.getTenantId()); |
|
|
|
String url = CommonConfig.airportUrl +"/api/airportInterface/airportList"; |
|
|
|
String param = "page=1&limit=1000&tenantName=" + URLEncoder.encode(tenant.getName(), "GBK"); |
|
|
|
String param = "page=1&limit=1000&tenantName=" + URLEncoder.encode(tenant.getName(), "UTF-8"); |
|
|
|
String airPortStr = HttpUtils.sendGet(url, param); |
|
|
|
JsonResult jsonResult = JacksonUtil.json2pojo(airPortStr, JsonResult.class); |
|
|
|
if(ObjectUtil.isEmpty(jsonResult) || (!ObjectUtil.isEmpty(jsonResult.getData()) &&jsonResult.getCode() != 0)) { |