|
|
@@ -18,6 +18,9 @@ import java.util.Objects; |
|
|
|
@Service |
|
|
|
public class AirportServiceImpl implements AirportService { |
|
|
|
|
|
|
|
private final static String API_AIRPORT_LIST = "/api/airportInterface/airportList"; |
|
|
|
private final static String API_AIRPORT_LINE_LIST = "/api/airportInterface/taskByDroneId"; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private TenantMapper tenantMapper; |
|
|
|
|
|
|
@@ -34,7 +37,7 @@ public class AirportServiceImpl implements AirportService { |
|
|
|
return JsonResult.error(AriportCodeEnum.GET_NO_TENANT.getCode(), AriportCodeEnum.GET_NO_TENANT.getMsg()); |
|
|
|
} |
|
|
|
|
|
|
|
String url = tenant.getAirportUrl() + "/api/airportInterface/airportList"; |
|
|
|
String url = tenant.getAirportUrl() + API_AIRPORT_LIST; |
|
|
|
String param = "page=1&limit=10"; |
|
|
|
String airPortStr = HttpUtils.sendGet(url, param); |
|
|
|
|
|
|
@@ -57,7 +60,7 @@ public class AirportServiceImpl implements AirportService { |
|
|
|
return JsonResult.error(AriportCodeEnum.GET_NO_TENANT.getCode(), AriportCodeEnum.GET_NO_TENANT.getMsg()); |
|
|
|
} |
|
|
|
|
|
|
|
String url = tenant.getAirportUrl() + "/api/airportInterface/taskByDroneId"; |
|
|
|
String url = tenant.getAirportUrl() + API_AIRPORT_LINE_LIST; |
|
|
|
String param = "page=1&limit=100&droneId=" + droneId; |
|
|
|
String airPortStr = HttpUtils.sendGet(url, param); |
|
|
|
JsonResult<AirLineVO> jsonResult = JacksonUtil.json2pojo(airPortStr, JsonResult.class); |