|
@@ -766,11 +766,13 @@ public class SubmitServiceImpl implements SubmitService {
|
|
|
Double floor = Math.floor(MathUtil.div(productFee, promotions.getTouchPrice()).doubleValue());
|
|
|
promotionFullReduction.set(MathUtil.add(promotionFullReduction.get(), MathUtil.mul(promotions.getReducedPrice(), floor)).doubleValue());
|
|
|
productFee = MathUtil.sub(productFee, MathUtil.mul(promotions.getReducedPrice(), floor)).doubleValue();
|
|
|
+ shopOrder.setPromotionFullReduction(MathUtil.mul(promotions.getReducedPrice(), floor).doubleValue());
|
|
|
} else {
|
|
|
// 统计订单总满减金额
|
|
|
promotionFullReduction.set(MathUtil.add(promotionFullReduction.get(), promotions.getReducedPrice()).doubleValue());
|
|
|
// 统计单个商品的折后金额
|
|
|
productFee = MathUtil.sub(productFee, promotions.getReducedPrice()).doubleValue();
|
|
|
+ shopOrder.setPromotionFullReduction(promotions.getReducedPrice());
|
|
|
}
|
|
|
}
|
|
|
// 添加到总促销
|
|
@@ -1109,11 +1111,23 @@ public class SubmitServiceImpl implements SubmitService {
|
|
|
promotionFullReduction.set(MathUtil.add(promotionFullReduction.get(), MathUtil.mul(promotions.getReducedPrice(), floor)).doubleValue());
|
|
|
// 统计商品总金额
|
|
|
productTotalFee.set(MathUtil.sub(productTotalFee.get(), MathUtil.mul(promotions.getReducedPrice(), floor)).doubleValue());
|
|
|
+ // 当前版本凑单促销仅支持综合供应商 ,shopid 1161
|
|
|
+ shopOrderList.forEach(s -> {
|
|
|
+ if (1161 == s.getShopId()) {
|
|
|
+ s.setPromotionFullReduction(MathUtil.mul(promotions.getReducedPrice(), floor).doubleValue());
|
|
|
+ }
|
|
|
+ });
|
|
|
} else {
|
|
|
// 满减
|
|
|
promotionFullReduction.set(MathUtil.add(promotionFullReduction.get(), promotions.getReducedPrice()).doubleValue());
|
|
|
// 统计商品总金额
|
|
|
productTotalFee.set(MathUtil.sub(productTotalFee.get(), promotions.getReducedPrice()).doubleValue());
|
|
|
+ // 当前版本凑单促销仅支持综合供应商 ,shopid 1161
|
|
|
+ shopOrderList.forEach(s -> {
|
|
|
+ if (1161 == s.getShopId()) {
|
|
|
+ s.setPromotionFullReduction(promotions.getReducedPrice());
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
} else {
|