Commit aaf40d1b by liyanlin

fix

parent 2c69af6a
...@@ -36,6 +36,7 @@ public class DiscountConfigServiceImpl extends ServiceImpl<DiscountConfigMapper, ...@@ -36,6 +36,7 @@ public class DiscountConfigServiceImpl extends ServiceImpl<DiscountConfigMapper,
.le(DiscountConfig::getChargeAmount, amount) .le(DiscountConfig::getChargeAmount, amount)
.eq(DiscountConfig::getBrandId,brandId) .eq(DiscountConfig::getBrandId,brandId)
.orderByDesc(DiscountConfig::getChargeAmount) .orderByDesc(DiscountConfig::getChargeAmount)
.last("limit 1")
); );
} }
} }
...@@ -21,6 +21,7 @@ public class LeisureDiscountConfigServiceImpl extends ServiceImpl<LeisureDiscoun ...@@ -21,6 +21,7 @@ public class LeisureDiscountConfigServiceImpl extends ServiceImpl<LeisureDiscoun
new LambdaQueryWrapper<LeisureDiscountConfig>() new LambdaQueryWrapper<LeisureDiscountConfig>()
.eq(LeisureDiscountConfig::getIsEnabled, 1) .eq(LeisureDiscountConfig::getIsEnabled, 1)
.eq(LeisureDiscountConfig::getBrandId, brandId) .eq(LeisureDiscountConfig::getBrandId, brandId)
.orderByAsc(LeisureDiscountConfig::getDiscountRate)); .orderByAsc(LeisureDiscountConfig::getDiscountRate)
.last("limit 1"));
} }
} }
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