From 04bb0bfb6f9d4ed5a5db4d7ddc8f8b80dbbb4f9d Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期六, 28 三月 2020 01:39:39 +0800
Subject: [PATCH] 处理查询重复数据问题
---
java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
index 3c1ed14..99205c9 100644
--- a/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
@@ -339,6 +339,7 @@
<if test="communityName != null and communityName != '' and needCommunityInfo == true">
and sc.name like concat('%',#{communityName},'%')
</if>
+ group by ms.community_id
order by ms.create_time desc
<if test="page != -1 and page != null">
limit #{page},#{row}
@@ -424,6 +425,7 @@
<if test="communityName != null and communityName != '' and needCommunityInfo == true">
and sc.name like concat('%',#{communityName},'%')
</if>
+ group by ms.community_id
</select>
<!-- 鏌ヨ灏忓尯淇℃伅 add by wuxw 2018-07-03 -->
--
Gitblit v1.8.0