充值报错问题
This commit is contained in:
parent
6f93900c2a
commit
42e6b3a689
|
|
@ -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 <= #{amount} and max_num >= #{amount}
|
||||
select *
|
||||
from tb_activate
|
||||
where shop_id = #{shopId}
|
||||
and is_del = 0
|
||||
and min_num <= #{amount}
|
||||
and max_num >= #{amount}
|
||||
ORDER BY max_num desc limit 1
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue