Parcourir la source

优化SQL查询bug

wuxw il y a 6 ans
Parent
commit
6892d8a851

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

@@ -473,7 +473,7 @@
             and cm.audit_status_cd = #{auditStatusCd}
         </if>
         <if test="notInCommunityId != null ">
-            t.community_id not in
+            and t.community_id not in
             <foreach collection="notInCommunityId" item="item" open="(" close=")" separator=",">
                 #{item}
             </foreach>
@@ -530,7 +530,7 @@
                 and cm.status_cd = '0'
         </if>
         <if test="notInCommunityId != null ">
-            t.community_id not in
+            and t.community_id not in
             <foreach collection="notInCommunityId" item="item" open="(" close=")" separator=",">
                 #{item}
             </foreach>