Browse Source

暂不支持参与

master
张彭杰 1 year ago
parent
commit
faf4bf352e
1 changed files with 2 additions and 2 deletions
  1. 4
      dating-agency-mall-server/src/main/java/com/qniao/dam/application/service/order/OrderApplicationService.java

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

@ -439,7 +439,7 @@ public class OrderApplicationService extends BaseApplicationService {
dto.getMiId()); dto.getMiId());
CalculateSiteActivityFeeVo calculateVo = datingAgencyServiceApplicationService.calculateSiteActivityFeeBySdk(calculateDto); CalculateSiteActivityFeeVo calculateVo = datingAgencyServiceApplicationService.calculateSiteActivityFeeBySdk(calculateDto);
if (!calculateVo.getEnable()) { if (!calculateVo.getEnable()) {
throw new BizException("下单异常");
throw new BizException("暂不支持参与");
} }
OrderItem orderItem = OrderItem.build(productSpec.getProductId(), productSpec.getId(), product.getProductType(), product.getMainCategory(), product.getSubCategory(), OrderItem orderItem = OrderItem.build(productSpec.getProductId(), productSpec.getId(), product.getProductType(), product.getMainCategory(), product.getSubCategory(),
product.getProductTitle(), calculateVo.getUnitSettlementPrice(), calculateVo.getUnitSettlementPrice(), 1); product.getProductTitle(), calculateVo.getUnitSettlementPrice(), calculateVo.getUnitSettlementPrice(), 1);
@ -463,7 +463,7 @@ public class OrderApplicationService extends BaseApplicationService {
dto.getMiId()); dto.getMiId());
CalculateSiteActivityFeeVo calculateVo = datingAgencyServiceApplicationService.calculateSiteActivityFeeBySdk(calculateDto); CalculateSiteActivityFeeVo calculateVo = datingAgencyServiceApplicationService.calculateSiteActivityFeeBySdk(calculateDto);
if (!calculateVo.getEnable()) { if (!calculateVo.getEnable()) {
throw new BizException("下单异常");
throw new BizException("暂不支持参与");
} }
return TypeConvertUtils.convert(calculateVo, UserCalculateOrderFeeVo.class, (a, b) -> { return TypeConvertUtils.convert(calculateVo, UserCalculateOrderFeeVo.class, (a, b) -> {
if (Objects.nonNull(a.getVipFee()) && a.getVipFee().getEnable()) { if (Objects.nonNull(a.getVipFee()) && a.getVipFee().getEnable()) {

Loading…
Cancel
Save