From 8e749f36afe3ee1ae14198262f5da36d67337106 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Tue, 29 Jun 2021 15:06:19 +0800
Subject: [PATCH] 1.群管理

---
 src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 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 fcdea60..adc6620 100644
--- a/src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml
+++ b/src/main/java/org/springblade/modules/article/mapper/ArticleMapper.xml
@@ -5,5 +5,18 @@
     <!--查询资讯分页列表信息-->
     <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&gt;=#{article.startTime}
+        </if>
+        <if test="article.endTime!=null and article.endTime!=''">
+            and create_time&lt;=#{article.endTime}
+        </if>
     </select>
 </mapper>

--
Gitblit v1.9.3