| | |
| | | t.start_time startTime, |
| | | t.end_time endTime, |
| | | t.create_time createTime, |
| | | t.room_id roomId |
| | | t.room_id roomId, |
| | | t.status_cd statusCd |
| | | FROM |
| | | building_owner_room_rel t |
| | | INNER JOIN building_owner bo ON t.owner_id = bo.owner_id AND bo.status_cd = '0' AND bo.community_id = |
| | | #{communityId} |
| | | INNER JOIN building_owner bo ON t.owner_id = bo.owner_id AND bo.status_cd = '0' |
| | | WHERE |
| | | bo.owner_type_cd = '1001' |
| | | AND t.room_id = #{roomId} |
| | |
| | | select COUNT(1) count |
| | | from building_owner_room_rel t |
| | | inner join building_owner bo |
| | | on t.owner_id = bo.owner_id and bo.status_cd = '0' and bo.community_id = #{communityId} |
| | | on t.owner_id = bo.owner_id and bo.status_cd = '0' |
| | | where bo.owner_type_cd = '1001' |
| | | and t.room_id = #{roomId} |
| | | </select> |