ソースを参照

优化小区查询代码

java110 5 年 前
コミット
ae6e1826d9
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml

+ 1 - 1
java110-db/src/main/resources/mapper/community/CommunityServiceDaoImplMapper.xml

@@ -515,7 +515,7 @@
 
     <!-- 查询小区数量 add by wuxw 2018-07-03 -->
     <select id="queryCommunitysCount" parameterType="Map" resultType="Map">
-        select  count(1) count
+        select  count(DISTINCT(t.community_id)) count
         from s_community t,city_area ca
         <if test="memberId !=null and memberId !=''">
             ,s_community_member cm