南昌市物联网技防平台-公安版
zengh
2021-06-11 02fe295ee1dc726717cc005de584d0ebd05d8e92
blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/article/mapper/ArticleMapper.xml
@@ -5,5 +5,19 @@
    <!--查询资讯分页列表信息-->
    <select id="selectArticlePage" resultType="org.springblade.jfpt.article.entity.Article">
        select * from sys_article
        where 1=1
        <if test="article.sourceName!=null and article.sourceName!=''">
            and source_name like concat('%',#{article.sourceName},'%')
        </if>
        <if test="article.title!=null and article.title!=''">
            and title like concat('%',#{article.title},'%')
        </if>
        <if test="article.startTime!=null and article.startTime!='' and article.startTime!='undefined'">
            and create_time &gt;=#{article.startTime}
        </if>
        <if test="article.endTime!=null and article.endTime!='' and article.endTime!='undefined'">
            and create_time &lt;=#{article.endTime}
        </if>
        order by create_time desc
    </select>
</mapper>