linwei
2024-01-19 d46ca134f82fd106bfbbbd71aef7184805e6d7e7
src/main/java/org/springblade/modules/place/mapper/PlaceExtMapper.xml
@@ -23,8 +23,18 @@
        LEFT JOIN jczz_grid jg on jg.id = jgr.grid_id
        WHERE
        jpe.is_deleted = 0
        <if test="placeExt.communityCode != null and placeExt.communityCode != ''">
            and jg.community_code like concat('%',#{placeExt.communityCode},'%')
        <if test="isAdministrator==2">
            <choose>
                <when test="regionChildCodesList !=null and regionChildCodesList.size()>0">
                    and jg.community_code in
                    <foreach collection="regionChildCodesList" item="code" open="(" close=")" separator=",">
                        #{code}
                    </foreach>
                </when>
                <otherwise>
                    and jg.community_code in ('')
                </otherwise>
            </choose>
        </if>
        <if test="placeExt.placeName != null and placeExt.placeName != ''">
            and jp.place_name like concat('%',#{placeExt.placeName},'%')