Commit 9f2fc635 by zhiheng.zhang

券码核销添加

parent 126be24d
...@@ -98,9 +98,9 @@ public class DeliverySharingService { ...@@ -98,9 +98,9 @@ public class DeliverySharingService {
} }
public void mallDeliveryResponse(ShoppingCartGoodsResponseVo shoppingCartGoodsResponseVo, Long deliveryAmount,CalculationSharingDiscountResponseDto.CalculationDiscountResult discountResult) { public void mallDeliveryResponse(ShoppingCartGoodsResponseVo shoppingCartGoodsResponseVo, Long deliveryAmount,CalculationSharingDiscountResponseDto.CalculationDiscountResult discountResult) {
shoppingCartGoodsResponseVo.setDeliveryAmount(discountResult.getDeliveryAmount()); shoppingCartGoodsResponseVo.setDeliveryAmount(deliveryAmount);
shoppingCartGoodsResponseVo.setDiscountDeliveryAmount(discountResult.getDistributionFee()); shoppingCartGoodsResponseVo.setDiscountDeliveryAmount(0L);
shoppingCartGoodsResponseVo.setIsDiscountDelivery(true); shoppingCartGoodsResponseVo.setIsDiscountDelivery(false);
shoppingCartGoodsResponseVo.setTotalAmount(shoppingCartGoodsResponseVo.getTotalAmount() + deliveryAmount); shoppingCartGoodsResponseVo.setTotalAmount(shoppingCartGoodsResponseVo.getTotalAmount() + deliveryAmount);
shoppingCartGoodsResponseVo.setOriginalTotalAmount(shoppingCartGoodsResponseVo.getOriginalTotalAmount() + deliveryAmount); shoppingCartGoodsResponseVo.setOriginalTotalAmount(shoppingCartGoodsResponseVo.getOriginalTotalAmount() + deliveryAmount);
} }
......
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