lin
2024-03-22 774c8b2ee14eef5fd10bbd46d85a180e7b19ab21
查询过滤优化
2 files modified
7 ■■■■ changed files
src/main/java/org/springblade/modules/house/mapper/HouseRentalMapper.xml 4 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/place/mapper/PlaceExtMapper.xml 3 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/house/mapper/HouseRentalMapper.xml
@@ -189,6 +189,10 @@
            AND jhr.create_time BETWEEN #{vo.startTime} and #{vo.endTime}
        </if>
        <if test="vo.communityCode != null and vo.communityCode != ''">
            AND jpag.community_code = #{vo.communityCode}
        </if>
        <include refid="filterData"/>
        order by jhr.create_time desc,jhr.id desc
src/main/java/org/springblade/modules/place/mapper/PlaceExtMapper.xml
@@ -114,8 +114,9 @@
        LEFT JOIN jczz_doorplate_address jda ON jp.house_code = jda.address_code
        <where>
            <if test="placeExt.neiCode != null and placeExt.neiCode != ''">
                and jda.nei_code = #{placeExt.neiCode}
               and jpag.community_code like concat('%',#{placeExt.neiCode},'%')
            </if>
            <if test="placeExt.confirmFlag != null">
                and jpe.confirm_flag = #{placeExt.confirmFlag}
            </if>