Browse Source

首页模块开发

tags/v1.1.0^2
chenjiandong 1 year ago
parent
commit
cc6548c0fd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ThInspectionServiceImpl.java

+ 1
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/ThInspectionServiceImpl.java View File

@@ -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)) {

Loading…
Cancel
Save