| | |
| | | <result column="update_time" property="updateTime"/> |
| | | <result column="remark" property="remark"/> |
| | | <result column="is_deleted" property="isDeleted"/> |
| | | <collection property="userHouseLabelVOList" javaType="java.util.List" select="selectHouseLabelPage" column="house_code" |
| | | <collection property="userHouseLabelVOList" javaType="java.util.List" select="selectHouseLabelPage" |
| | | column="house_code" |
| | | ofType="org.springblade.modules.house.vo.UserHouseLabelVO" autoMapping="true"> |
| | | </collection> |
| | | </resultMap> |
| | |
| | | and jda.town_street_code like concat('%',#{house.streetCode},'%') |
| | | </if> |
| | | <if test="house.houseCode != null and house.houseCode != ''"> and jh.house_code = #{house.houseCode}</if> |
| | | <if test="house.districtCode != null and house.districtCode != ''"> and jh.district_code = #{house.districtCode}</if> |
| | | <if test="house.districtCode != null and house.districtCode != ''">and jh.district_code = |
| | | #{house.districtCode} |
| | | </if> |
| | | <if test="house.districtName != null and house.districtName != ''"> |
| | | and jh.district_name like concat('%',#{house.districtName},'%') |
| | | </if> |
| | |
| | | <if test="house.neiName!=null and house.neiName!=''"> |
| | | and br.name like concat('%',#{house.neiName},'%') |
| | | </if> |
| | | <if test="house.houseName != null and house.houseName != ''"> and jh.house_name like concat('%',#{house.houseName},'%')</if> |
| | | <if test="house.houseName != null and house.houseName != ''">and jh.house_name like |
| | | concat('%',#{house.houseName},'%') |
| | | </if> |
| | | <if test="house.phone != null and house.phone != ''"> and jh.phone = #{house.phone}</if> |
| | | <if test="house.area != null "> and jh.area = #{house.area}</if> |
| | | <if test="house.propertyPrice != null "> and jh.property_price = #{house.propertyPrice}</if> |
| | |
| | | where is_deleted = 0 |
| | | <if test="house.id != null "> and id = #{house.id}</if> |
| | | <if test="house.houseCode != null and house.houseCode != ''"> and house_code = #{house.houseCode}</if> |
| | | <if test="house.districtCode != null and house.districtCode != ''"> and district_code = #{house.districtCode}</if> |
| | | <if test="house.districtCode != null and house.districtCode != ''">and district_code = #{house.districtCode} |
| | | </if> |
| | | <if test="house.districtName != null and house.districtName != ''"> |
| | | and district_name like concat('%',#{house.districtName},'%') |
| | | </if> |
| | |
| | | jda.nei_code as parentCode |
| | | FROM jczz_house jh |
| | | left join |
| | | (select nei_code,aoi_code from jczz_doorplate_address where nei_code = #{houseParam.code} group by nei_code,aoi_code) jda |
| | | (select nei_code,aoi_code from jczz_doorplate_address where nei_code = #{houseParam.code} group by |
| | | nei_code,aoi_code) jda |
| | | on jda.aoi_code = jh.district_code |
| | | WHERE jda.nei_code = #{houseParam.code} |
| | | <include refid="filterHouseGrid"/> |
| | |
| | | district_code as parentCode |
| | | FROM jczz_house jh |
| | | left join |
| | | (select nei_code,aoi_code from jczz_doorplate_address where nei_code = #{houseParam.code} group by nei_code,aoi_code) jda |
| | | (select nei_code,aoi_code from jczz_doorplate_address where nei_code = #{houseParam.code} group by |
| | | nei_code,aoi_code) jda |
| | | on jda.aoi_code = jh.district_code |
| | | WHERE jda.nei_code = #{houseParam.code} |
| | | <include refid="filterHouseGrid"/> |
| | |
| | | building as parentCode |
| | | FROM jczz_house jh |
| | | left join |
| | | (select nei_code,aoi_code from jczz_doorplate_address where nei_code = #{houseParam.code} group by nei_code,aoi_code) jda |
| | | (select nei_code,aoi_code from jczz_doorplate_address where nei_code = #{houseParam.code} group by |
| | | nei_code,aoi_code) jda |
| | | on jda.aoi_code = jh.district_code |
| | | WHERE jda.nei_code = #{houseParam.code} |
| | | <include refid="filterHouseGrid"/> |
| | |
| | | |
| | | </select> |
| | | |
| | | <select id="getHouseBuilding" resultType="java.lang.String"> |
| | | SELECT DISTINCT |
| | | jh.building |
| | | FROM |
| | | jczz_house jh |
| | | LEFT JOIN jczz_district jd ON jd.aoi_code = jh.district_code |
| | | WHERE |
| | | jd.id = #{districtCode} |
| | | and jh.building is not null |
| | | </select> |
| | | |
| | | <select id="getHouseUnit" resultType="java.lang.String"> |
| | | SELECT DISTINCT |
| | | jh.unit |
| | | FROM |
| | | jczz_house jh |
| | | LEFT JOIN jczz_district jd ON jd.aoi_code = jh.district_code |
| | | WHERE |
| | | jd.id = #{districtCode} |
| | | and jd.building = #{building} |
| | | and jh.building is not null |
| | | |
| | | </select> |
| | | |
| | | |
| | | </mapper> |