绑定车辆做门店校验 #4

Merged
zhangli merged 1 commits from zhangli-test into main 2025-09-08 01:42:17 +08:00
Showing only changes of commit e46d6f17cc - Show all commits

View File

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