forked from zhurui/management
20 lines
670 B
XML
20 lines
670 B
XML
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||
|
|
||
|
<mapper namespace="com.dkha.dao.SysRoleDataScopeDao">
|
||
|
|
||
|
<select id="getDeptIdList" resultType="long">
|
||
|
select dept_id from sys_role_data_scope where role_id = #{value}
|
||
|
</select>
|
||
|
|
||
|
<select id="getDataScopeList" resultType="long">
|
||
|
select t2.dept_id from sys_role_user t1, sys_role_data_scope t2
|
||
|
where t1.user_id = #{value} and t1.role_id = t2.role_id
|
||
|
</select>
|
||
|
|
||
|
<delete id="deleteByRoleId">
|
||
|
delete from sys_role_data_scope where role_id = #{value}
|
||
|
</delete>
|
||
|
|
||
|
</mapper>
|