linwe
2023-11-24 03166fec064856cb14de837cedc8bb6c5a537212
src/main/java/org/springblade/modules/district/mapper/DistrictMapper.xml
@@ -19,9 +19,16 @@
        <result column="is_deleted" property="isDeleted"/>
    </resultMap>
    <select id="selectDistrictPage" resultMap="districtResultMap">
        select * from jczz_district where is_deleted = 0
    <!--自定义分页-->
    <select id="selectDistrictPage" resultType="org.springblade.modules.district.vo.DistrictVO">
        select * from jczz_district
        where is_deleted = 0
        <if test="district.name !=null and district.name !=''">
            and name like concat('%',#{district.name},'%')
        </if>
        <if test="district.communityCode !=null and district.communityCode !=''">
            and community_code = #{district.communityCode}
        </if>
    </select>