Browse Source

新增vpi接口

master
996472796@qq.com 1 year ago
parent
commit
c553355399
1 changed files with 6 additions and 4 deletions
  1. 10
      dating-agency-mall-server/src/main/java/com/qniao/dam/application/service/order/OrderApplicationService.java

10
dating-agency-mall-server/src/main/java/com/qniao/dam/application/service/order/OrderApplicationService.java

@ -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("您已经拥有相同类型的权益");
}
}
}
}

Loading…
Cancel
Save