From adcff04c70567f4b1e74ec2c8dcecbb5164f94ec Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Thu, 29 Sep 2022 09:43:35 +0800
Subject: [PATCH] 1、增加轮播图维护 2、修复队伍接口报错
---
src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml b/src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml
index 064ce00..3ca1251 100644
--- a/src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml
+++ b/src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml
@@ -18,15 +18,18 @@
<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>
<!--查询资讯敏感词预警-->
@@ -53,7 +56,7 @@
LIKE CONCAT ('%', #{article.keyword},'%')
</if>
and iswords = "1"
- order by create_time desc
+ order by id desc
</select>
<!--查询资讯分页列表信息-->
@@ -71,7 +74,7 @@
AND publish = 1
</if>
and iswords = "0"
- order by create_time desc
+ order by id desc
</select>
<!--查询收藏资讯分页列表信息-->
@@ -94,7 +97,7 @@
AND publish = 1
</if>
and iswords = "0"
- order by create_time desc
+ order by id desc
</select>
<!--查询资讯分页列表信息-->
@@ -158,7 +161,7 @@
AND publish = 1
</if>
and iswords = "0"
- order by create_time desc
+ order by id desc
</select>
<!--查询资讯分页列表信息-->
@@ -223,7 +226,7 @@
AND publish = 1
</if>
and iswords = "0"
- order by create_time desc
+ order by id desc
</select>
<update id="upcomment">
@@ -258,6 +261,6 @@
AND publish = 1
</if>
and iswords = "0" and type!=1
- order by create_time desc
+ order by id desc
</select>
</mapper>
--
Gitblit v1.9.3