洪城义警-正式版后台
zengh
2021-08-13 ccc6e51f22bf0b2b0cebb84e32f55a5cebdb9692
src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml
@@ -18,5 +18,13 @@
        <if test="article.endTime!=null and article.endTime!=''">
            and create_time&lt;=#{article.endTime}
        </if>
        <if test="article.articleType!=null and article.articleType!=''">
            and article_type = #{article.articleType}
        </if>
        <if test="article.keyword!=null and article.keyword!=''">
            AND CONCAT(title,source_name)
            LIKE CONCAT ('%', #{article.keyword},'%')
        </if>
        order by create_time desc
    </select>
</mapper>