绑定车辆做门店校验

This commit is contained in:
2025-09-08 01:41:29 +08:00
parent 73a4b3bde6
commit e46d6f17cc

View File

@ -773,6 +773,9 @@ public class OrderServiceImpl implements OrderService {
if(orderMainPO==null){ if(orderMainPO==null){
throw new BizException("订单不存在"); throw new BizException("订单不存在");
} }
if(!orderMainPO.getStoreId().equals(carDTO.getStoreId())){
throw new BizException("此车辆不属于当前门店");
}
if(!orderMainPO.getOrderStatus().equals(OrderStatusEnum.WAIT_PICK.getCode())){ if(!orderMainPO.getOrderStatus().equals(OrderStatusEnum.WAIT_PICK.getCode())){
throw new BizException("订单状态异常,非待取车状态"); throw new BizException("订单状态异常,非待取车状态");
} }