| | |
| | | inner join building_room br on t.room_id = br.room_id and br.status_cd = '0' |
| | | inner join building_unit bu on br.unit_id = bu.unit_id and bu.status_cd = '0' |
| | | inner join f_floor fl on bu.floor_id = fl.floor_id and fl.status_cd = '0' |
| | | where 1 =1 |
| | | <if test="ownerNameLike !=null and ownerNameLike != ''"> |
| | | and bo.`name` like concat('%',#{ownerNameLike},'%') |
| | | </if> |
| | | <if test="link !=null and link != ''"> |
| | | and bo.`link` = #{link} |
| | | </if> |
| | | <if test="relId !=null and relId != ''"> |
| | | and t.rel_id= #{relId} |
| | |
| | | inner join building_unit bu on br.unit_id = bu.unit_id and bu.status_cd = '0' |
| | | inner join f_floor fl on bu.floor_id = fl.floor_id and fl.status_cd = '0' |
| | | where 1 =1 |
| | | <if test="ownerNameLike !=null and ownerNameLike != ''"> |
| | | and bo.`name` like concat('%',#{ownerNameLike},'%') |
| | | </if> |
| | | <if test="link !=null and link != ''"> |
| | | and bo.`link` = #{link} |
| | | </if> |
| | | <if test="relId !=null and relId != ''"> |
| | | and t.rel_id= #{relId} |
| | | </if> |