This commit is contained in:
77
2024-03-18 21:13:35 +08:00
parent 02e8ea8f2f
commit 6fa752d8a8
6 changed files with 52 additions and 0 deletions

View File

@@ -21,6 +21,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
order by id desc
</select>
<select id="listUserVipMaster" resultType="com.ruoyi.xq.domain.UserVip">
select t1.user_id, max(t1.vip_type) as vip_type
from xq_user_vip t1
where
and t1.vip_status = 1
and t1.vip_timeout &lt;= now()
and t1.user_id in
<foreach collection="userIdList" item="value" open="(" close=")" separator="," >
#{value}
</foreach>
group by t1.user_id
</select>
</mapper>