| | |
| | | <!--房屋详情--> |
| | | <resultMap id="houseAndHouseLabelMap" type="org.springblade.modules.house.vo.HouseVO" autoMapping="true"> |
| | | <id property="id" column="id"/> |
| | | <collection property="houseLabelVOList" javaType="java.util.List" |
| | | ofType="org.springblade.modules.house.vo.HouseLabelVO" autoMapping="true"> |
| | | <collection property="userHouseLabelVOList" javaType="java.util.List" |
| | | ofType="org.springblade.modules.house.vo.UserHouseLabelVO" autoMapping="true"> |
| | | <id property="id" column="cid"/> |
| | | <result property="remark" column="cremark"/> |
| | | </collection> |
| | |
| | | jh.*, |
| | | jhl.id as cid,jhl.*,jhl.remark as cremark |
| | | from jczz_house jh |
| | | left join jczz_house_label jhl on jh.house_code = jhl.house_code |
| | | where jh.is_deleted = 0 |
| | | left join jczz_user_house_label jhl on jh.house_code = jhl.house_code |
| | | where jh.is_deleted = 0 and jhl.lable_type = 2 |
| | | and jh.house_code = #{house.houseCode} |
| | | </select> |
| | | |