Commit a06a5fe8 by 周晓航

修改配送费 计算逻辑

【ID1013202】
结算页支付金额计算没有扣除配送券的

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 2ee33af0
...@@ -1827,14 +1827,18 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -1827,14 +1827,18 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
} }
shoppingCartGoodsResponseVo.setDeliveryAmount(deliveryAmount); shoppingCartGoodsResponseVo.setDeliveryAmount(deliveryAmount);
shoppingCartGoodsResponseVo.setDiscountDeliveryAmount(deliveryAmount); // shoppingCartGoodsResponseVo.setDiscountDeliveryAmount(deliveryAmount); 原有逻辑
// 增加配送券之后的逻辑
shoppingCartGoodsResponseVo.setDiscountDeliveryAmount(calculationDiscountResult==null?deliveryAmount:calculationDiscountResult.getDistributionFee());
shoppingCartGoodsResponseVo.setIsDiscountDelivery(false); shoppingCartGoodsResponseVo.setIsDiscountDelivery(false);
} else { } else {
String desc = DELIVERY_DISCOUNT_DESC3; String desc = DELIVERY_DISCOUNT_DESC3;
shoppingCartGoodsResponseVo.setDeliveryDiscountDesc(String.format(desc, df.format(deliveryAmount.doubleValue() / 100))); shoppingCartGoodsResponseVo.setDeliveryDiscountDesc(String.format(desc, df.format(deliveryAmount.doubleValue() / 100)));
shoppingCartGoodsResponseVo.setDeliveryAmount(deliveryAmount); shoppingCartGoodsResponseVo.setDeliveryAmount(deliveryAmount);
shoppingCartGoodsResponseVo.setDiscountDeliveryAmount(deliveryAmount); // shoppingCartGoodsResponseVo.setDiscountDeliveryAmount(deliveryAmount); 原有逻辑
// 增加配送券之后的逻辑
shoppingCartGoodsResponseVo.setDiscountDeliveryAmount(calculationDiscountResult==null?deliveryAmount:calculationDiscountResult.getDistributionFee());
shoppingCartGoodsResponseVo.setIsDiscountDelivery(false); shoppingCartGoodsResponseVo.setIsDiscountDelivery(false);
} }
} }
......
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