洪城义警-正式版后台
zengh
2022-05-24 d162e19f6a43b1822c63e872f2f30e8ecac10653
src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml
@@ -19,7 +19,7 @@
            and create_time<=#{article.endTime}
        </if>
        <if test="article.articleType!=null and article.articleType!=''">
            and article_type = #{article.articleType}
            and article_type like concat('%',#{article.articleType},'%')
        </if>
        <if test="article.keyword!=null and article.keyword!=''">
            AND CONCAT(title,source_name)
@@ -254,6 +254,9 @@
            AND CONCAT(title,source_name)
            LIKE CONCAT ('%', #{article.keyword},'%')
        </if>
        <if test="(article.rolename==null and article.rolename=='') or (article.rolename!='administrator' and article.rolename!='policeAdmin')">
            AND publish = 1
        </if>
        and iswords = "0" and type!=1
        order by create_time desc
    </select>