linwei
2024-01-26 016e47ea961d84a186db0bbd45cd6d7eaaa57bc3
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>