|
|
|
@ -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 != ''"> |
|
|
|
|