|
|
@ -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()) { |
|
|
|