| | |
| | | public R<XpCruiseOrder> getCruisePoint(@RequestBody CruisePointDto dto) { |
| | | // 先找计划 |
| | | XpCruisePlanVehicle plan = xpCruisePlanVehicleService.getOne(new LambdaQueryWrapper<XpCruisePlanVehicle>().eq(XpCruisePlanVehicle::getVehicleId, dto.getVehicleId())); |
| | | if (plan == null) { |
| | | return R.fail("没有找到对应的计划"); |
| | | } |
| | | // 找对应的多个点位 |
| | | List<XpCruisePlanPoint> planPointList = xpCruisePlanPointService.list(new LambdaQueryWrapper<XpCruisePlanPoint>().eq(XpCruisePlanPoint::getCruisePlanId, plan.getCruisePlanId()).orderByAsc(XpCruisePlanPoint::getSortOrder)); |
| | | // 找到现在这个点位 |
| | |
| | | return R.ok(newXpCruiseOrder); |
| | | } |
| | | |
| | | /** |
| | | * 获取巡游计划 |
| | | * @param vehicleId |
| | | * @return |
| | | */ |
| | | @PostMapping("/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); |
| | | } |
| | | |
| | | /** |
| | | * 获取巡游订单数据 |