数据
This commit is contained in:
@@ -121,6 +121,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</if>
|
||||
</if>
|
||||
</select>
|
||||
<select id="anchorStatus" resultType="com.ruoyi.cai.dto.app.vo.anchor.AnchorStatusDTO">
|
||||
select
|
||||
t1.user_id,t1.id as anchor_id,
|
||||
case
|
||||
when t1.open_video_status = 1 then 3
|
||||
when t1.video_status = 1 then 2
|
||||
when t2.status = 1 then 1
|
||||
ELSE 0
|
||||
end as anchor_status
|
||||
from cai_anchor t1
|
||||
left join cai_user_online t2 on t1.user_id = t2.user_id
|
||||
where t1.user_id in
|
||||
<foreach collection="userList" separator="," open="(" close=")" item="value">
|
||||
#{value}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user