linwei
2024-02-03 b7df6735bcb2d447cae7fcfba2d12accf3dd2fcc
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>