公会优化-加入房间-列表包含非公会牌照房

This commit is contained in:
2022-11-10 11:39:26 +08:00
parent 6414265248
commit bcb5f6db1e

View File

@@ -228,7 +228,6 @@
</update>
<resultMap id="hallVo" type="com.accompany.business.vo.hall.HallVo">
<result column="clanId" property="clanId" jdbcType="BIGINT"/>
<result column="hallId" property="hallId" jdbcType="BIGINT"/>
<result column="hallName" property="hallName" jdbcType="VARCHAR"/>
<result column="ownerUid" property="ownerUid" jdbcType="BIGINT"/>
@@ -236,10 +235,9 @@
</resultMap>
<select id="listHall" resultMap="hallVo">
select ch.clan_id clanId, h.id hallId, r.title hallName, r.avatar ownerAvatar, h.owner_uid ownerUid
from hall h, clan_hall ch, room r
where h.id = ch.hall_id and h.status = 1 and ch.status = 1
and h.owner_uid = r.uid
select h.id hallId, r.title hallName, r.avatar ownerAvatar, h.owner_uid ownerUid
from hall h, room r
where h.status = 1 and h.owner_uid = r.uid
</select>
</mapper>