123
This commit is contained in:
@@ -28,9 +28,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</update>
|
||||
<select id="pageAdmin" resultType="com.ruoyi.cai.dto.admin.vo.AnchorAdminVo">
|
||||
select
|
||||
t1.*,t2.age,t2.avatar,t2.usercode,t2.nickname,t2.mobile,t2.gender,t2.age,t2.city
|
||||
t1.*,t2.age,t2.avatar,t2.usercode,t2.nickname,t2.mobile,t2.gender,t2.age,t2.city,
|
||||
t3.status as online_status
|
||||
from cai_anchor t1
|
||||
left join cai_user t2 on t1.user_id = t2.id
|
||||
left join cai_user_online t3 on t1.user_id = t3.user_id
|
||||
<where>
|
||||
<if test="bo.mobile != null and bo.mobile != ''">
|
||||
and t2.mobile = #{bo.mobile}
|
||||
@@ -38,6 +40,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="bo.usercode != null and bo.usercode != ''">
|
||||
and t2.usercode = #{bo.usercode}
|
||||
</if>
|
||||
<if test="bo.onlineStatus != null">
|
||||
and t3.status = #{bo.onlineStatus}
|
||||
</if>
|
||||
</where>
|
||||
order by t1.create_time desc
|
||||
</select>
|
||||
|
||||
@@ -6,11 +6,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="pageAdmin" resultType="com.ruoyi.cai.dto.admin.vo.UserAdminVo">
|
||||
select t1.*,t2.last_login_ip,t2.last_login_time,t2.reg_ip,t2.reg_time,
|
||||
t3.usercode as invite_usercode, t3.nickname as invite_nickname, t3.avatar as invite_avatar
|
||||
t3.usercode as invite_usercode, t3.nickname as invite_nickname, t3.avatar as invite_avatar,
|
||||
t4.status as online_status
|
||||
from cai_user t1
|
||||
left join cai_user_info t2 on t1.id = t2.user_id
|
||||
left join cai_user t3 on t1.invite_id = t3.id
|
||||
left join cai_user_online t4 on t1.id = t4.user_id
|
||||
<where>
|
||||
<if test="query.onlineStatus != null">
|
||||
and t4.status = #{query.onlineStatus}
|
||||
</if>
|
||||
<if test="query.lastLoginIp != null">
|
||||
and t2.last_login_ip = #{query.lastLoginIp}
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user