| | |
| | | aoi_code aoiCode |
| | | from jczz_district |
| | | where is_deleted = 0 |
| | | <if test="district.districtIdList!=null and district.districtIdList!=''"> |
| | | <if test="district.districtIdList!=null and district.districtIdList.size() > 0"> |
| | | and id in |
| | | <foreach collection="district.districtIdList" item="item" separator ="," open="(" close=")"> |
| | | #{item} |
| | |
| | | |
| | | <!--小区自定义获取详情查询--> |
| | | <select id="getDetail" resultType="org.springblade.modules.district.vo.DistrictVO"> |
| | | SELECT |
| | | jd.*, |
| | | jda.nei_code as communityCode,jda.nei_name as communityName |
| | | SELECT jd.*, |
| | | jda.nei_code as communityCode, |
| | | jda.nei_name as communityName, |
| | | jpo.organization_name, |
| | | jpo.organization_type, |
| | | jpo.branch_type, |
| | | jpo.charge_person, |
| | | jpo.phone |
| | | FROM jczz_district jd |
| | | left join jczz_doorplate_address jda on jda.aoi_code = jd.aoi_code |
| | | left join jczz_doorplate_address jda on jda.aoi_code = jd.aoi_code |
| | | LEFT JOIN jczz_party_organization jpo on jpo.area_id = jda.nei_code |
| | | where jd.is_deleted = 0 |
| | | and jda.address_code = #{district.houseCode} |
| | | and jda.address_code = #{district.houseCode} |
| | | </select> |
| | | |
| | | |