init
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user