Commit aaf40d1b by liyanlin

fix

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