Browse Source

site加授权过滤

master
shenzhouyu 2 weeks ago
parent
commit
f5e9fad5ea
  1. 4
      cclqms-java/src/main/resources/mapper/factory/SiteMapper.xml

4
cclqms-java/src/main/resources/mapper/factory/SiteMapper.xml

@ -60,13 +60,13 @@
</where>
</select>
<!-- 查询site -->
<!-- 查询当前用户 AccessSite 授权的 site -->
<select id="getSite2" resultType="com.gaotao.modules.factory.entity.vo.SiteVo" parameterType="com.gaotao.modules.factory.entity.vo.SiteVo">
SELECT
a.siteid,
a.sitename
FROM site a
LEFT JOIN AccessSite b ON b.userID = #{username} and a.siteid = b.site
INNER JOIN AccessSite b ON b.userID = #{username} and a.siteid = b.site
<where>
a.active = 'Y'
<if test = "siteid != null and siteid != ''">

Loading…
Cancel
Save