<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="org.springblade.modules.article.mapper.ArticleMapper">
|
|
<!--查询资讯分页列表信息-->
|
<select id="selectArticlePage" resultType="org.springblade.modules.article.entity.Article">
|
select * from sys_article
|
where 1=1
|
<if test="article.title!=null and article.title!=''">
|
and title like concat('%',#{article.title},'%')
|
</if>
|
<if test="article.sourceName!=null and article.sourceName!=''">
|
and source_name like concat('%',#{article.sourceName},'%')
|
</if>
|
<if test="article.startTime!=null and article.startTime!=''">
|
and create_time>=#{article.startTime}
|
</if>
|
<if test="article.endTime!=null and article.endTime!=''">
|
and create_time<=#{article.endTime}
|
</if>
|
</select>
|
</mapper>
|