This commit is contained in:
dute7liang
2024-01-01 17:03:08 +08:00
parent 48d655f737
commit 0128d6437e
19 changed files with 276 additions and 29 deletions

View File

@@ -40,6 +40,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="query.gender != null">
and t1.gender = #{query.gender}
</if>
order by t2.last_live_time desc
</select>
<select id="greetPageApp" resultType="com.ruoyi.cai.dto.app.vo.user.UserListVo">
select t1.avatar,t1.gender,t1.city,t1.nickname,t1.usercode,t1.age,t2.last_live_time
from cai_user t1
join cai_user_online t2 on t1.id = t2.user_id
where t1.status = 0
<if test="query.city != null and query.city != ''">
and t1.city = #{query.city}
</if>
order by t2.last_live_time desc
</select>