zhongrj
2024-04-12 47712cc6cd4d52fcd1dde44e2a400ccbb9c6ae7a
src/main/java/org/springblade/modules/district/mapper/DistrictMapper.xml
@@ -71,7 +71,7 @@
        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}
@@ -82,13 +82,19 @@
    <!--小区自定义获取详情查询-->
    <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>