From 8bf63d821d65d1dd8f0570d0c7e021b2b46f38e5 Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Fri, 8 Nov 2024 17:25:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=85=E5=80=BC=E6=B4=BB=E5=8A=A8=20?= =?UTF-8?q?=E6=BB=A1=E8=B6=B3=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mapper/TbActivateMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/TbActivateMapper.xml b/src/main/resources/mapper/TbActivateMapper.xml index 8dc9bc7..f1f9a9f 100644 --- a/src/main/resources/mapper/TbActivateMapper.xml +++ b/src/main/resources/mapper/TbActivateMapper.xml @@ -23,8 +23,8 @@ select * from tb_activate where shop_id = #{shopId} - and amount = #{amount} - ORDER BY amount desc + and amount <= #{amount} + order by amount desc limit 1