linwei
2024-01-31 b3b566ebdfed4005aaa513da3d5d2fd3924903cc
src/main/java/org/springblade/modules/article/mapper/ArticleCommentMapper.xml
@@ -85,9 +85,10 @@
            <if test="noticeComment.name != null ">and bu.name like concat('%',#{noticeComment.name},'%')</if>
            <if test="noticeComment.title != null ">and ja.title like concat('%',#{noticeComment.title},'%')</if>
            <if test="noticeComment.cityCode != null and noticeComment.cityCode != ''">
            <if test="noticeComment.cityCodeList != null and noticeComment.cityCodeList.size() > 0">
                and ( ja.article_range like
                <foreach collection="noticeComment.cityCode" separator=" or ja.article_range like" item="id">'%${id}%'
                <foreach collection="noticeComment.cityCodeList" separator=" or ja.article_range like" item="id">
                    '%${id}%'
                </foreach>
                )
            </if>