| | |
| | | <if test="article.endTime!=null and article.endTime!=''"> |
| | | and create_time<=#{article.endTime} |
| | | </if> |
| | | <if test="article.publish!=null and article.publish!=''"> |
| | | and publish = #{article.publish} |
| | | </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) |
| | | LIKE CONCAT ('%', #{article.keyword},'%') |
| | | </if> |
| | | and iswords = "0" |
| | | order by create_time desc |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--查询资讯敏感词预警--> |
| | |
| | | LIKE CONCAT ('%', #{article.keyword},'%') |
| | | </if> |
| | | and iswords = "1" |
| | | order by create_time desc |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--查询资讯分页列表信息--> |
| | |
| | | AND publish = 1 |
| | | </if> |
| | | and iswords = "0" |
| | | order by create_time desc |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--查询收藏资讯分页列表信息--> |
| | |
| | | AND publish = 1 |
| | | </if> |
| | | and iswords = "0" |
| | | order by create_time desc |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--查询资讯分页列表信息--> |
| | |
| | | AND publish = 1 |
| | | </if> |
| | | and iswords = "0" |
| | | order by create_time desc |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--查询资讯分页列表信息--> |
| | |
| | | AND publish = 1 |
| | | </if> |
| | | and iswords = "0" |
| | | order by create_time desc |
| | | order by id desc |
| | | </select> |
| | | |
| | | <update id="upcomment"> |
| | |
| | | AND publish = 1 |
| | | </if> |
| | | and iswords = "0" and type!=1 |
| | | order by create_time desc |
| | | order by id desc |
| | | </select> |
| | | </mapper> |