* @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); | ||||
} | } | ||||
} | } |
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); | ||||
} | } | ||||
@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); |