Commit dc07071f by 姜海波

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

parents 074dd19c 168797c7
...@@ -20,4 +20,9 @@ public class BenefitBeanDto { ...@@ -20,4 +20,9 @@ public class BenefitBeanDto {
* 优惠等级(用于阶梯满减) * 优惠等级(用于阶梯满减)
*/ */
private Integer benefitSeq; private Integer benefitSeq;
private Integer benefitType;
} }
\ No newline at end of file
...@@ -1040,7 +1040,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService { ...@@ -1040,7 +1040,7 @@ public class ShoppingCartNewServiceImpl implements ShoppingCartNewService {
ActivityResponseDto activityResponse = activityQueryResponseDto.getResult().get(0); ActivityResponseDto activityResponse = activityQueryResponseDto.getResult().get(0);
BenefitBeanDto beanDto=activityResponse.getBenefits().get(0); BenefitBeanDto beanDto=activityResponse.getBenefits().get(0);
if(beanDto.getDiscountAmount()>=deliveryAmount){ if(beanDto.getBenefitType() == 2){
String desc = DELIVERY_DISCOUNT_DESC2; String desc = DELIVERY_DISCOUNT_DESC2;
shoppingCartGoodsResponseVo.setDeliveryDiscountDesc(String.format(desc, beanDto.getThresholdAmount() /100 )); shoppingCartGoodsResponseVo.setDeliveryDiscountDesc(String.format(desc, beanDto.getThresholdAmount() /100 ));
}else{ }else{
......
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