|
|
|
@ -95,10 +95,12 @@ public class OrderApplicationService { |
|
|
|
orderItem.setUnitSettlementPrice(activityProduct.getActivityUnitSellingPrice()); |
|
|
|
} |
|
|
|
//1.1. 同类型权益,不同规格,限制购买和提醒 |
|
|
|
if (ProductTypeEnum.VIRTUAL.equals(product.getProductType())) { |
|
|
|
boolean diffFlag = orderQueryService.checkDiffSpecRight(order, orderItem, productSpec); |
|
|
|
if (diffFlag) { |
|
|
|
throw new BizException("您已经拥有相同类型的权益"); |
|
|
|
if(order.getGroupType() == null || order.getGroupType() == 0) { |
|
|
|
if (ProductTypeEnum.VIRTUAL.equals(product.getProductType())) { |
|
|
|
boolean diffFlag = orderQueryService.checkDiffSpecRight(order, orderItem, productSpec); |
|
|
|
if (diffFlag) { |
|
|
|
throw new BizException("您已经拥有相同类型的权益"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|