diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java index 1a1699159..846cb55f6 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java @@ -157,10 +157,10 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { MaxoutVO maxoutVO = new MaxoutVO(); BeanUtils.copyProperties(activeFullminus,maxoutVO); LambdaQueryWrapper queryWrappers = new LambdaQueryWrapper<>(); - queryWrappers.eq(ActiveDiscountChild::getActiveDiscountId,activeFullminus.getId()); + queryWrappers.eq(ActiveDiscountChild::getActiveFullminusId,activeFullminus.getId()); //判断符合金额 queryWrappers.le(ActiveDiscountChild::getAmount,transferDTO.getOilPrice() * transferDTO.getOilLiters()); - queryWrappers.orderByDesc(ActiveDiscountChild::getCreateTime); + queryWrappers.orderByDesc(ActiveDiscountChild::getAmount); maxoutVO.setActiveDiscountChildList(activeDiscountChildService.list(queryWrappers)); maxoutVOArrayList.add(maxoutVO); } @@ -184,7 +184,7 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { queryWrappers.eq(ActiveDiscountChild::getActiveDiscountId,activeDiscount.getId()); //判断符合金额 queryWrappers.le(ActiveDiscountChild::getAmount,transferDTO.getOilPrice() * transferDTO.getOilLiters()); - queryWrappers.orderByDesc(ActiveDiscountChild::getCreateTime); + queryWrappers.orderByDesc(ActiveDiscountChild::getAmount); maxoutVO.setActiveDiscountChildList(activeDiscountChildService.list(queryWrappers)); maxoutVOArrayList.add(maxoutVO); }