| | |
| | | |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.xiaopeng.api.feignClient.vehicleConvoy.XpFleetClient; |
| | | import com.xiaopeng.api.feignClient.vehicleConvoy.XpFleetVehicleClient; |
| | | import com.xiaopeng.api.feignClient.vehicleConvoy.XpVehicleClient; |
| | |
| | | import com.xiaopeng.operation.query.CruisePlanQuery; |
| | | import com.xiaopeng.operation.service.IXpCruisePlanPointService; |
| | | import com.xiaopeng.operation.service.IXpCruisePlanService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.xiaopeng.operation.service.IXpCruisePlanVehicleService; |
| | | import com.xiaopeng.operation.service.IXpPointService; |
| | | import com.xiaopeng.operation.vo.XpCruisePlanDetailVO; |
| | |
| | | List<Long> pointIds = planPoints.stream() |
| | | .map(XpCruisePlanPoint::getPointId) |
| | | .filter(Objects::nonNull) |
| | | .map(Integer::longValue) |
| | | .collect(Collectors.toList()); |
| | | Map<Long, XpPoint> pointMap = CollUtil.isNotEmpty(pointIds) |
| | | ? xpPointService.listByIds(pointIds).stream() |
| | |
| | | if (CollUtil.isEmpty(pointList)) { |
| | | throw new ServiceException("关联点位列表不能为空", I18nKeyConstant.CRUISE_PLAN_POINT_EMPTY); |
| | | } |
| | | Set<Integer> pointIdSet = new HashSet<>(); |
| | | Set<Long> pointIdSet = new HashSet<>(); |
| | | for (XpCruisePlanAddDTO.CruisePlanPointDTO pointDTO : pointList) { |
| | | if (pointDTO.getPointId() == null || pointDTO.getSortOrder() == null || pointDTO.getStopFlag() == null) { |
| | | throw new ServiceException("点位参数不完整", I18nKeyConstant.CRUISE_PLAN_POINT_INCOMPLETE); |