hym 4 年之前
父节点
当前提交
b78d01864d
共有 1 个文件被更改,包括 7 次插入0 次删除
  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>