充值报错问题

This commit is contained in:
wangw 2024-08-26 15:27:46 +08:00
parent 6f93900c2a
commit 42e6b3a689
1 changed files with 7 additions and 1 deletions

View File

@ -116,6 +116,12 @@
</update>
<select id="selectByAmount" resultMap="BaseResultMap">
select * from tb_activate where shop_id=#{shopId} and is_del=0 and min_num &lt;= #{amount} and max_num &gt;= #{amount}
select *
from tb_activate
where shop_id = #{shopId}
and is_del = 0
and min_num &lt;= #{amount}
and max_num &gt;= #{amount}
ORDER BY max_num desc limit 1
</select>
</mapper>