hym 4 years ago
parent
commit
b78d01864d
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/main/resources/mapper/CommunityMapper.xml

+ 7 - 0
src/main/resources/mapper/CommunityMapper.xml

@@ -499,6 +499,13 @@
                 and site_id=#{siteId}
             </if>
         </where>
+        <if test="orgId!=null">
+           union all
+            select * from sc_community
+            where org_id is null
+            and region=#{areaId}
+            and site_id=#{siteId}
+        </if>
     </select>
 
 </mapper>