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> </where>
</select> </select>
<!-- 查询site -->
<!-- 查询当前用户 AccessSite 授权的 site -->
<select id="getSite2" resultType="com.gaotao.modules.factory.entity.vo.SiteVo" parameterType="com.gaotao.modules.factory.entity.vo.SiteVo"> <select id="getSite2" resultType="com.gaotao.modules.factory.entity.vo.SiteVo" parameterType="com.gaotao.modules.factory.entity.vo.SiteVo">
SELECT SELECT
a.siteid, a.siteid,
a.sitename a.sitename
FROM site a 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> <where>
a.active = 'Y' a.active = 'Y'
<if test = "siteid != null and siteid != ''"> <if test = "siteid != null and siteid != ''">

Loading…
Cancel
Save