diff --git a/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/order/AppTradeOrderController.java b/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/order/AppTradeOrderController.java index b325c99ec..24bbfb6e7 100644 --- a/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/order/AppTradeOrderController.java +++ b/yudao-module-mall/yudao-module-trade-biz/src/main/java/cn/iocoder/yudao/module/trade/controller/app/order/AppTradeOrderController.java @@ -106,9 +106,9 @@ public class AppTradeOrderController { if(skuDiscount != null && skuVip != null){ if(skuDiscount.getPrice() > skuVip.getPrice()){ - skus.add(skuDiscount); - }else{ skus.add(skuVip); + }else{ + skus.add(skuDiscount); } }else if(skuDiscount != null){ skus.add(skuDiscount); @@ -335,7 +335,7 @@ public class AppTradeOrderController { RewardActivityMatchRespDTO.Rule rule = rewardActivityMatchRespDTO.getRules().get(0); return AppTradeProductSettlementRespVO.Reward.builder(). rewardActivity("满" + rule.getLimit() / 100 + (Objects.equals(rewardActivityMatchRespDTO.getConditionType(), PromotionConditionTypeEnum.PRICE.getType())?"元":"件"+"减") +rule.getDiscountPrice() / 100) - .rewardId(rewardActivityMatchRespDTO.getId()).build(); + .id(rewardActivityMatchRespDTO.getId()).build(); } } return null;