From f14c50cb0036d3ddd655ce4e34732ba396a836c4 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期二, 30 五月 2023 12:42:03 +0800
Subject: [PATCH] optimize 统计
---
java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
index 73cfd4d..564f1a5 100755
--- a/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml
@@ -375,9 +375,9 @@
<if test="communityName != null and communityName != '' and needCommunityInfo == true">
and sc.name like concat('%',#{communityName},'%')
</if>
- <if test="needCommunityInfo == true">
- group by ms.community_id
- </if>
+<!-- <if test="needCommunityInfo == true">-->
+<!-- group by ms.community_id-->
+<!-- </if>-->
order by ms.create_time desc
<if test="page != -1 and page != null">
limit #{page},#{row}
@@ -469,9 +469,9 @@
<if test="communityName != null and communityName != '' and needCommunityInfo == true">
and sc.name like concat('%',#{communityName},'%')
</if>
- <if test="needCommunityInfo == true">
- group by ms.community_id
- </if>
+<!-- <if test="needCommunityInfo == true">-->
+<!-- group by ms.community_id-->
+<!-- </if>-->
</select>
@@ -489,7 +489,7 @@
'瀹℃牳鎷掔粷'
END) stateName,ca.area_code areaCode,ca.area_name areaName,
ca.parent_area_code parentAreaCode,ca.parent_area_name parentAreaName,
- t.community_area communityArea,t.pay_fee_month,t.pay_fee_month payFeeMonth,t.fee_price,t.fee_price feePrice
+ t.community_area communityArea,t.pay_fee_month,t.pay_fee_month payFeeMonth,t.fee_price,t.fee_price feePrice,t.qr_code qrCode
from s_community t,city_area ca
<if test="memberId !=null and memberId !=''">
,s_community_member cm
@@ -550,7 +550,7 @@
#{item}
</foreach>
</if>
- group by t.community_id
+<!-- group by t.community_id-->
order by t.create_time ASC
<if test="page != -1 and page != null ">
limit #{page}, #{row}
@@ -643,7 +643,8 @@
ca.area_name areaName,
ca.parent_area_name cityName,
ca1.parent_area_name provName,
- sc.community_area communityArea
+ sc.community_area communityArea,
+ sc.qr_code qrCode
FROM
s_community sc,
s_community_member scm,
--
Gitblit v1.8.0