Merge pull request '绑定车辆做门店校验' (#4) from zhangli-test into main

Reviewed-on: #4
This commit is contained in:
2025-09-08 01:42:16 +08:00

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("订单状态异常,非待取车状态");
} }