Commit bcb67bcb by 姜海波

Merge remote-tracking branch 'remotes/origin/feature-2020/2/10-1.9.15-免配送费二期-海波' into qa

parents d167f558 bd2d8495
...@@ -1011,7 +1011,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -1011,7 +1011,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
Optional<ActivityCalculationDiscountResponseDto.CalculationDiscountResult.Discount> discount Optional<ActivityCalculationDiscountResponseDto.CalculationDiscountResult.Discount> discount
= calculationDiscountResult.getDiscounts().stream() = calculationDiscountResult.getDiscounts().stream()
.filter(discount1 -> { .filter(discount1 -> {
return discount1.getType().equals(ActivityTypeEnum.TYPE_14.getCode()); return ActivityTypeEnum.TYPE_14.getCode().equals(discount1.getType());
}) })
.findFirst(); .findFirst();
...@@ -1045,7 +1045,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -1045,7 +1045,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
shoppingCartGoodsResponseVo.setDeliveryDiscountDesc(String.format(desc, beanDto.getThresholdAmount() /100 )); shoppingCartGoodsResponseVo.setDeliveryDiscountDesc(String.format(desc, beanDto.getThresholdAmount() /100 ));
}else{ }else{
String desc = DELIVERY_DISCOUNT_DESC1; String desc = DELIVERY_DISCOUNT_DESC1;
shoppingCartGoodsResponseVo.setDeliveryDiscountDesc(String.format(desc, beanDto.getThresholdAmount() /100 ,calculationDiscountResult.getDeliveryAmount() / 100)); shoppingCartGoodsResponseVo.setDeliveryDiscountDesc(String.format(desc, beanDto.getThresholdAmount() /100 ,beanDto.getDiscountAmount() / 100));
} }
shoppingCartGoodsResponseVo.setDeliveryAmount(calculationDiscountResult.getDeliveryAmount()); shoppingCartGoodsResponseVo.setDeliveryAmount(calculationDiscountResult.getDeliveryAmount());
......
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