| | |
| | | * 获取车辆下个点位 |
| | | * @return |
| | | */ |
| | | @PostMapping("/inner/cruise/getCruisePoint") |
| | | @PostMapping("/logan/inner/cruise/getCruisePoint") |
| | | public R<XpCruiseOrder> getCruisePoint(@RequestBody CruisePointDto dto) { |
| | | // 先找计划 |
| | | XpCruisePlanVehicle plan = xpCruisePlanVehicleService.getOne(new LambdaQueryWrapper<XpCruisePlanVehicle>().eq(XpCruisePlanVehicle::getVehicleId, dto.getVehicleId())); |
| | |
| | | * @param vehicleId |
| | | * @return |
| | | */ |
| | | @PostMapping("/inner/cruise/getCruisePlan") |
| | | @PostMapping("/logan/inner/cruise/getCruisePlan") |
| | | public R<XpCruisePlanVehicle> getCruisePlan(@RequestParam Long vehicleId) { |
| | | XpCruisePlanVehicle plan = xpCruisePlanVehicleService.getOne(new LambdaQueryWrapper<XpCruisePlanVehicle>().eq(XpCruisePlanVehicle::getVehicleId, vehicleId)); |
| | | return R.ok(plan); |
| | |
| | | * @param vehicleId |
| | | * @return |
| | | */ |
| | | @PostMapping("/inner/cruise/getCruisePlanPointList") |
| | | @PostMapping("/logan/inner/cruise/getCruisePlanPointList") |
| | | public R<List<XpCruisePlanPoint>> getCruisePlanPointList(@RequestParam Long vehicleId) { |
| | | // 先找计划 |
| | | XpCruisePlanVehicle plan = xpCruisePlanVehicleService.getOne(new LambdaQueryWrapper<XpCruisePlanVehicle>().eq(XpCruisePlanVehicle::getVehicleId, vehicleId)); |
| | |
| | | * 获取巡游订单数据 |
| | | * @return |
| | | */ |
| | | @PostMapping("/inner/cruise/getNewCruiseOrder") |
| | | @PostMapping("/logan/inner/cruise/getNewCruiseOrder") |
| | | public R<XpCruiseOrder> getNewCruiseOrder(@RequestBody NewCruiseOrderDto dto) { |
| | | |
| | | // 先找计划 |
| | |
| | | * @param xpCruiseOrder |
| | | * @return |
| | | */ |
| | | @PostMapping("/inner/cruise/findReturnCruisePoint") |
| | | @PostMapping("/logan/inner/cruise/findReturnCruisePoint") |
| | | public R<XpCruiseOrder> findReturnCruisePoint(@RequestBody XpCruiseOrder xpCruiseOrder) { |
| | | // 先找计划 |
| | | XpCruisePlanVehicle plan = xpCruisePlanVehicleService.getOne(new LambdaQueryWrapper<XpCruisePlanVehicle>().eq(XpCruisePlanVehicle::getVehicleId, xpCruiseOrder.getVehicleId())); |
| | |
| | | /** |
| | | * 判断点位ID列表是否存在关联的巡游计划点位(内部接口) |
| | | */ |
| | | @PostMapping("/inner/cruise/existsCruisePlanPointByPointIds") |
| | | @PostMapping("/logan/inner/cruise/existsCruisePlanPointByPointIds") |
| | | public R<Boolean> existsCruisePlanPointByPointIds(@RequestBody List<Long> pointIds) { |
| | | List<Long> distinctPointIds = pointIds == null |
| | | ? java.util.Collections.emptyList() |