This commit is contained in:
张良(004796)
2024-01-19 15:49:23 +08:00
parent fbc18b491d
commit edbae82e7d
10 changed files with 147 additions and 12 deletions

View File

@@ -31,16 +31,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
order by t2.last_login_time desc
</select>
<select id="pageApp" resultType="com.ruoyi.cai.dto.app.vo.user.UserListVo">
select t1.avatar,t1.id as user_id,t1.gender,t1.city,t1.city_id,t1.nickname,t1.usercode,t1.age,t2.last_live_time as bind_time
select t1.avatar,t1.id as user_id,t1.gender,t1.city,t1.city_id,t1.nickname,t1.usercode,
t1.age,t2.last_live_time as bind_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},'%')
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.usercodeAndNickname != null and query.usercodeAndNickname != ''">
and (t1.usercode = #{query.usercodeAndNickname} or t1.nickname like concat(#{query.usercodeAndNickname},'%') )
</if>
<if test="query.gender != null">
and t1.gender = #{query.gender}
</if>