Commit 791842e9 by zhouhaibao

Merge remote-tracking branch 'origin/v5.8.3' into v5.8.3

2 parents 6bc4d777 c57c4fa2
...@@ -356,12 +356,7 @@ public class MarketingActivityService { ...@@ -356,12 +356,7 @@ public class MarketingActivityService {
.map(MarketingActivityProductItemReqDTO::getDiscountPrice) .map(MarketingActivityProductItemReqDTO::getDiscountPrice)
.filter(Objects::nonNull) .filter(Objects::nonNull)
.reduce(BigDecimal.ZERO, BigDecimal::add); .reduce(BigDecimal.ZERO, BigDecimal::add);
BigDecimal totalIncentive = items.stream()
.map(MarketingActivityProductItemReqDTO::getSalesIncentive)
.filter(Objects::nonNull)
.reduce(BigDecimal.ZERO, BigDecimal::add);
product.setDiscountPrice(totalDiscount); product.setDiscountPrice(totalDiscount);
product.setSalesIncentive(totalIncentive);
} }
// ==================== 门店可用性校验 ==================== // ==================== 门店可用性校验 ====================
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!