Ver código fonte

优化 小区sql

wuxw 6 anos atrás
pai
commit
e4b5b47c8c

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

@@ -319,6 +319,9 @@
         <if test="memberId != null and memberId != '' and needCommunityInfo == false">
             and ms.member_id = #{memberId}
         </if>
+        <if test="noAuditEnterCommunity == true">
+            and ms.member_type_cd not in ('390001200003','390001200005','390001200000')
+        </if>
         <if test="memberTypeCd != null and memberTypeCd != ''">
             and ms.member_type_cd = #{memberTypeCd}
         </if>
@@ -386,7 +389,7 @@
         </if>
 
         <if test="noAuditEnterCommunity == true">
-            ms.member_type_cd not in ('390001200003','390001200005','390001200000')
+            and ms.member_type_cd not in ('390001200003','390001200005','390001200000')
         </if>
 
         <if test="memberTypeCd != null and memberTypeCd != ''">