From aacf24db4518ee248b9ebda389312ab7dc4e564e Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Tue, 28 Jun 2022 20:37:34 +0800
Subject: [PATCH] 保安员同步修改

---
 src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml |    5 ++++-
 1 files changed, 4 insertions(+), 1 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 3cdb73c..82a6a01 100644
--- a/src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml
+++ b/src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml
@@ -18,6 +18,9 @@
         <if test="article.endTime!=null and article.endTime!=''">
             and create_time&lt;=#{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 like concat('%',#{article.articleType},'%')
         </if>
@@ -26,7 +29,7 @@
             LIKE CONCAT ('%', #{article.keyword},'%')
         </if>
         and iswords = "0"
-        order by create_time desc
+        order by id desc
     </select>
 
     <!--查询资讯敏感词预警-->

--
Gitblit v1.9.3