Commit bd2d8495 by 姜海波

调整配送费 逻辑

parent 241f68b3
......@@ -1012,7 +1012,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
Optional<ActivityCalculationDiscountResponseDto.CalculationDiscountResult.Discount> discount
= calculationDiscountResult.getDiscounts().stream()
.filter(discount1 -> {
return discount1.getType().equals(ActivityTypeEnum.TYPE_14.getCode());
return ActivityTypeEnum.TYPE_14.getCode().equals(discount1.getType());
})
.findFirst();
......@@ -1046,7 +1046,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
shoppingCartGoodsResponseVo.setDeliveryDiscountDesc(String.format(desc, beanDto.getThresholdAmount() /100 ));
}else{
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());
......
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