Browse Source

新增根据机场ID获取航线列表接口

pull/356/head
wanjing 11 months ago
parent
commit
db21823dd4
3 changed files with 24 additions and 6 deletions
  1. +13
    -4
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/AirPortController.java
  2. +4
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/AirportService.java
  3. +7
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/AirportServiceImpl.java

+ 13
- 4
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/AirPortController.java View File

* @return * @return
*/ */
@GetMapping("/line/list/{droneId}") @GetMapping("/line/list/{droneId}")
public JsonResult getAirLineList(@PathVariable("droneId") Integer droneId) {
return airportService.getAirLineList(droneId);
public JsonResult getAirLineListByDroneId(@PathVariable("droneId") Integer droneId) {
return airportService.getAirLineListByDroneId(droneId);
}

/**
* 获取巡检线路
*
* @param airportId 机场Id
* @return
*/
@GetMapping("/line/list/by/airportId/{airportId}")
public JsonResult getAirLineListByAirportId(@PathVariable("airportId") String airportId) {
return airportService.getAirLineListByAirportId(airportId);
} }


/** /**
return airportService.reversalFlight(request); return airportService.reversalFlight(request);
} }




} }

+ 4
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/AirportService.java View File

import com.tuoheng.admin.vo.AirportInfoVo; import com.tuoheng.admin.vo.AirportInfoVo;
import com.tuoheng.admin.vo.AirportLineVo; import com.tuoheng.admin.vo.AirportLineVo;
import com.tuoheng.common.core.utils.JsonResult; import com.tuoheng.common.core.utils.JsonResult;
import org.springframework.web.bind.annotation.PathVariable;


import java.util.List; import java.util.List;




JsonResult getAirportDetail(Integer airportId,String airportCode); JsonResult getAirportDetail(Integer airportId,String airportCode);


JsonResult getAirLineList(Integer droneId);
JsonResult getAirLineListByDroneId(Integer droneId);

JsonResult getAirLineListByAirportId(String airportId);


JsonResult executeTask(String userId, Inspection inspection); JsonResult executeTask(String userId, Inspection inspection);



+ 7
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/third/airport/AirportServiceImpl.java View File

} }


@Override @Override
public JsonResult getAirLineList(Integer droneId) {
public JsonResult getAirLineListByDroneId(Integer droneId) {
return getAirLineListService.getAirLineList(droneId); return getAirLineListService.getAirLineList(droneId);
} }


@Override
public JsonResult getAirLineListByAirportId(String airportId) {
List<AirportLineVo> airportLineVoList = getAirLineListService.getList(airportId, null);
return JsonResult.success(airportLineVoList);
}

@Override @Override
public JsonResult executeTask(String userId, Inspection inspection) { public JsonResult executeTask(String userId, Inspection inspection) {
return executeTaskService.executeTask(userId, inspection); return executeTaskService.executeTask(userId, inspection);

Loading…
Cancel
Save