ソースを参照

优化 小区审核sql

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

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

@@ -381,7 +381,9 @@
             AND ms.`community_id` = msc.`community_id`
             and msc.member_id = #{memberId}
         </if>
-        <if test="memberId != null andull
+        <if test="memberId != null and memberId != '' and needCommunityInfo == false">
+            and ms.member_id = #{memberId}
+        </if>
         <if test="memberTypeCd != null and memberTypeCd != ''">
             and ms.member_type_cd = #{memberTypeCd}
         </if>