Commit 763139e7 by chongfu.liang

配送费bug

parent 371eb50a
...@@ -778,7 +778,7 @@ public class AbstractApportionService implements GetShoppingCartGoodsApportionSe ...@@ -778,7 +778,7 @@ public class AbstractApportionService implements GetShoppingCartGoodsApportionSe
String desc = DELIVERY_DISCOUNT_DESC1; String desc = DELIVERY_DISCOUNT_DESC1;
deliveryBO.setDeliveryDiscountDesc(String.format(desc, df.format(beanDto.getThresholdAmount().doubleValue() /100) ,df.format(beanDto.getDiscountAmount().doubleValue() / 100))); deliveryBO.setDeliveryDiscountDesc(String.format(desc, df.format(beanDto.getThresholdAmount().doubleValue() /100) ,df.format(beanDto.getDiscountAmount().doubleValue() / 100)));
} }
deliveryBO.setDeliveryAmount(discountResult.getDeliveryAmount()); deliveryBO.setDeliveryAmount(deliveryAmount);
deliveryBO.setDiscountDeliveryAmount(discountResult.getDistributionFee()); deliveryBO.setDiscountDeliveryAmount(discountResult.getDistributionFee());
deliveryBO.setThresholdAmount(discount.getThresholdAmount()); deliveryBO.setThresholdAmount(discount.getThresholdAmount());
deliveryBO.setIsDiscountDelivery(true); deliveryBO.setIsDiscountDelivery(true);
......
...@@ -66,7 +66,7 @@ public class DeliverySharingService { ...@@ -66,7 +66,7 @@ public class DeliverySharingService {
String desc = DELIVERY_DISCOUNT_DESC1; String desc = DELIVERY_DISCOUNT_DESC1;
shoppingCartGoodsResponseVo.setDeliveryDiscountDesc(String.format(desc, df.format(beanDto.getThresholdAmount().doubleValue() /100) ,df.format(beanDto.getDiscountAmount().doubleValue() / 100))); shoppingCartGoodsResponseVo.setDeliveryDiscountDesc(String.format(desc, df.format(beanDto.getThresholdAmount().doubleValue() /100) ,df.format(beanDto.getDiscountAmount().doubleValue() / 100)));
} }
shoppingCartGoodsResponseVo.setDeliveryAmount(deliveryAmount); shoppingCartGoodsResponseVo.setDeliveryAmount(discountResult.getDeliveryAmount());
shoppingCartGoodsResponseVo.setDiscountDeliveryAmount(discountResult.getDistributionFee()); shoppingCartGoodsResponseVo.setDiscountDeliveryAmount(discountResult.getDistributionFee());
shoppingCartGoodsResponseVo.setThresholdAmount(discount.getThresholdAmount()); shoppingCartGoodsResponseVo.setThresholdAmount(discount.getThresholdAmount());
shoppingCartGoodsResponseVo.setIsDiscountDelivery(true); shoppingCartGoodsResponseVo.setIsDiscountDelivery(true);
......
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