@@ -35,7 +35,7 @@ public class AirPortController { | |||
* @param droneId 机场列表里面的droneId | |||
* @return | |||
*/ | |||
@GetMapping("/line/{droneId}") | |||
@GetMapping("/line/list/{droneId}") | |||
public JsonResult getAirLineList(@PathVariable("droneId") Integer droneId) { | |||
return airportService.getAirLineList(droneId); | |||
} |
@@ -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); |
@@ -1,24 +1,17 @@ | |||
package com.tuoheng.admin.service.inspection.query; | |||
import cn.hutool.core.collection.CollectionUtil; | |||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; | |||
import com.tuoheng.admin.entity.Inspection; | |||
import com.tuoheng.admin.entity.InspectionFile; | |||
import com.tuoheng.admin.enums.InspectionFileStatusEnum; | |||
import com.tuoheng.admin.enums.code.inspection.QueryInspectionByIdCodeEnum; | |||
import com.tuoheng.admin.enums.code.inspection.QueryInspectionPageListCodeEnum; | |||
import com.tuoheng.admin.mapper.DeptMapper; | |||
import com.tuoheng.admin.mapper.InspectionFileMapper; | |||
import com.tuoheng.admin.mapper.InspectionMapper; | |||
import com.tuoheng.admin.utils.ShiroUtils; | |||
import com.tuoheng.common.core.utils.JsonResult; | |||
import com.tuoheng.common.core.utils.StringUtils; | |||
import lombok.extern.slf4j.Slf4j; | |||
import org.springframework.beans.factory.annotation.Autowired; | |||
import org.springframework.stereotype.Service; | |||
import java.util.List; | |||
/** | |||
* 根据Id查询巡检任务详情业务层处理 | |||
* |