增加多租户功能(应用隔离)
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
<if test="type != null">
|
||||
and t.type = #{type}
|
||||
</if>
|
||||
and t.hidden = 0
|
||||
ORDER BY sort ASC
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -13,4 +13,9 @@
|
||||
</if>
|
||||
</where>
|
||||
</delete>
|
||||
|
||||
<select id="findRolesByUserId" resultType="com.central.common.model.SysRole">
|
||||
select r.* from sys_role r
|
||||
inner join sys_role_user ru on r.id = ru.role_id and ru.user_id = #{userId}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user