【BUG】修改限时优惠和会员优惠显示最便宜相反的问题

This commit is contained in:
痴货 2024-09-14 19:16:48 +08:00
parent 0496ac237c
commit 51b8fe2eca

View File

@ -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;