This commit is contained in:
dute7liang
2023-12-23 22:34:25 +08:00
parent e29a4edf7c
commit 59d048e1a6
30 changed files with 705 additions and 28 deletions

View File

@@ -47,6 +47,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
from cai_user t1
left join cai_user_info t2 on t1.id = t2.user_id
</select>
<select id="pageApp" resultType="com.ruoyi.cai.dto.app.vo.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.nickname != null and query.nickname != ''">
and t1.nickname like concat('%',#{query.nickname},'%')
</if>
<if test="query.usercode != null and query.usercode != ''">
and t1.usercode = #{query.usercode}
</if>
<if test="query.gender != null">
and t1.gender = #{query.gender}
</if>
</select>
</mapper>