售后申请数量错误
This commit is contained in:
parent
2d57483805
commit
47ad388f7d
@ -126,8 +126,9 @@ public class AfterSaleServiceImpl extends ServiceImpl<AfterSaleMapper, AfterSale
|
|||||||
//获取订单货物判断是否可申请售后
|
//获取订单货物判断是否可申请售后
|
||||||
OrderItem orderItem = orderItemService.getBySn(sn);
|
OrderItem orderItem = orderItemService.getBySn(sn);
|
||||||
|
|
||||||
//未申请售后订单货物才能进行申请
|
//未申请售后订单货物或部分售后才能进行申请
|
||||||
if (!orderItem.getAfterSaleStatus().equals(OrderItemAfterSaleStatusEnum.NOT_APPLIED.name())) {
|
if (!orderItem.getAfterSaleStatus().equals(OrderItemAfterSaleStatusEnum.NOT_APPLIED.name())
|
||||||
|
&& !orderItem.getAfterSaleStatus().equals(OrderItemAfterSaleStatusEnum.PART_AFTER_SALE.name())) {
|
||||||
throw new ServiceException(ResultCode.AFTER_SALES_BAN);
|
throw new ServiceException(ResultCode.AFTER_SALES_BAN);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user