Commit 168797c7 by 姜海波

调整配送费 逻辑

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