Merge pull request '绑定车辆做门店校验' (#4) from zhangli-test into main
Reviewed-on: #4
This commit is contained in:
@ -773,6 +773,9 @@ public class OrderServiceImpl implements OrderService {
|
||||
if(orderMainPO==null){
|
||||
throw new BizException("订单不存在");
|
||||
}
|
||||
if(!orderMainPO.getStoreId().equals(carDTO.getStoreId())){
|
||||
throw new BizException("此车辆不属于当前门店");
|
||||
}
|
||||
if(!orderMainPO.getOrderStatus().equals(OrderStatusEnum.WAIT_PICK.getCode())){
|
||||
throw new BizException("订单状态异常,非待取车状态");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user