Commit c8544658 by 周晓航

维护 购物车配送费需求

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 1f9d6ec2
...@@ -898,7 +898,12 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -898,7 +898,12 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
// 设置 使用信息 // 设置 使用信息
Long useCouponThreshold = this.getUseCouponThreshold(shoppingCartGoodsResponseVo.getProducts()); Long useCouponThreshold = this.getUseCouponThreshold(shoppingCartGoodsResponseVo.getProducts());
shoppingCartGoodsResponseVo.setUseCouponThreshold(useCouponThreshold); shoppingCartGoodsResponseVo.setUseCouponThreshold(useCouponThreshold);
// 如果有夜间配送费 需要维护划线价 deliveryAmount 字段, ___> 注意, 配送费的优惠是 促销在算(又特么各算一半,这产品真是恶心)
Long deliveryAmount = shoppingCartGoodsResponseVo.getDeliveryAmount();
if (Objects.nonNull(deliveryAmount)) {
long nightDistributionFee = this.getNightDistributionFee(shoppingCartGoodsResponseVo.getDeliveryAmountList());
shoppingCartGoodsResponseVo.setDeliveryAmount(deliveryAmount + nightDistributionFee);
}
} }
/** /**
......
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