This commit is contained in:
77
2024-08-10 16:13:41 +08:00
parent 2a735161a2
commit eacfd189e8
11 changed files with 184 additions and 6 deletions

View File

@@ -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>