linwe
2024-08-09 8b7258c9427882bb1798f1502eaa35184c6e374e
src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml
@@ -113,6 +113,12 @@
                and (ja.article_range like concat('%',#{article.districtId},'%')
                or ja.article_range is null or ja.article_range = '')
            </if>
            <if test="article.districtIdList != null and article.districtIdList.size() > 0 ">
                and (ja.article_range like
                <foreach collection="article.districtIdList" separator=" or article_range like" item="id">'%${id}%'
                </foreach>
                ) or ja.article_range is null
            </if>
            <if test="article.districtId == null ">
                and ja.article_range is  null
@@ -172,6 +178,13 @@
            <if test="article.districtId != null and article.districtId != ''">
                and (ja.article_range like concat('%',#{article.districtId},'%')
                or ja.article_range is null)
            </if>
            <if test="article.districtIdList != null and article.districtIdList.size() > 0 ">
                and (ja.article_range like
                <foreach collection="article.districtIdList" separator=" or article_range like" item="id">'%${id}%'
                </foreach>
                ) or ja.article_range is null
            </if>
            <if test="article.building != null and article.building != ''">
@@ -608,6 +621,7 @@
        where 1=1
        and ja.is_deleted = 0
        and ja.publish = 1
        and ja.type = 0
        limit #{i},#{size}
    </select>
@@ -619,5 +633,6 @@
        where 1=1
        and ja.is_deleted = 0
        and ja.publish = 1
        and ja.type = 0
    </select>
</mapper>