Commit 9884cd47 authored by 332784038@qq.com's avatar 332784038@qq.com

Merge branch 'master-fix' into release

parents a067cde6 1d4a4eb1
...@@ -339,7 +339,7 @@ public class ProdCostCalculation { ...@@ -339,7 +339,7 @@ public class ProdCostCalculation {
if (isRestCoupon) { if (isRestCoupon) {
this.discountCalculation(prodParam, groupDto); this.discountCalculation(prodParam, groupDto);
} }
if (StringUtils.isNotBlank(prodParam.getBoxGauge())) { if (StringUtils.isNotBlank(prodParam.getBoxGauge())) {
String[] prodBox = prodParam.getBoxGauge().split("\\*"); String[] prodBox = prodParam.getBoxGauge().split("\\*");
if (prodBox.length == 3) { if (prodBox.length == 3) {
String prodL = prodBox[0]; String prodL = prodBox[0];
...@@ -581,7 +581,7 @@ public class ProdCostCalculation { ...@@ -581,7 +581,7 @@ public class ProdCostCalculation {
private void discountCalculation(ProdConditionParam prodParam, private void discountCalculation(ProdConditionParam prodParam,
CouponAvailableGroupDto groupDto) { CouponAvailableGroupDto groupDto) {
// 没有定价或者指定更新订单品名优惠,并且成交单价大于0时,去实时更新品名的优惠信息 // 没有定价或者指定更新订单品名优惠,并且成交单价大于0时,去实时更新品名的优惠信息
if ((Objects.isNull(prodParam.getIsPriced()) || !prodParam.getIsPriced() || prodParam.getCalculationType() == 6) && !prodParam.getSplitCustomPriceType() && !prodParam.getSpecialPriceType() && !prodParam.getChannelManualPricing() && prodParam.getOneFreight().compareTo(BigDecimal.ZERO) > 0) { if ((Objects.isNull(prodParam.getIsPriced()) || !prodParam.getIsPriced() || prodParam.getCalculationType() == 6 || prodParam.getCalculationType() == 7) && !prodParam.getSplitCustomPriceType() && !prodParam.getSpecialPriceType() && !prodParam.getChannelManualPricing() && prodParam.getOneFreight().compareTo(BigDecimal.ZERO) > 0) {
BigDecimal orgFreightReduceAmount = BigDecimal.ZERO; BigDecimal orgFreightReduceAmount = BigDecimal.ZERO;
BigDecimal orgClearanceReduceAmount = BigDecimal.ZERO; BigDecimal orgClearanceReduceAmount = BigDecimal.ZERO;
if (Objects.nonNull(groupDto) && CollectionUtil.isNotEmpty(groupDto.getCouponAvailableDtoList())) { if (Objects.nonNull(groupDto) && CollectionUtil.isNotEmpty(groupDto.getCouponAvailableDtoList())) {
...@@ -590,7 +590,7 @@ public class ProdCostCalculation { ...@@ -590,7 +590,7 @@ public class ProdCostCalculation {
BigDecimal freightReduceAmount = BigDecimal.ZERO; BigDecimal freightReduceAmount = BigDecimal.ZERO;
BigDecimal clearanceReduceAmount = BigDecimal.ZERO; BigDecimal clearanceReduceAmount = BigDecimal.ZERO;
List<CouponInfoVO> couponInfoVOList = new ArrayList<>(); List<CouponInfoVO> couponInfoVOList = new ArrayList<>();
if (Objects.nonNull(prodParam.getIsPriced()) && prodParam.getIsPriced() && prodParam.getCalculationType() == 6) { if (Objects.nonNull(prodParam.getIsPriced()) && prodParam.getIsPriced() && (prodParam.getCalculationType() == 6 || prodParam.getCalculationType() == 7)) {
// 当是已定价的产品,并且执行活动优惠重算时,计算方式为 新成交单价=原成交单价+原优惠金额-当前优惠金额 // 当是已定价的产品,并且执行活动优惠重算时,计算方式为 新成交单价=原成交单价+原优惠金额-当前优惠金额
orgFreightReduceAmount = prodParam.getDiscountFreightPrice(); orgFreightReduceAmount = prodParam.getDiscountFreightPrice();
orgClearanceReduceAmount = prodParam.getDiscountClearanceFeePrice(); orgClearanceReduceAmount = prodParam.getDiscountClearanceFeePrice();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment