This commit is contained in:
2023-02-22 15:59:13 +08:00
parent 8f3da0bf2e
commit 1d8aff98c7
76 changed files with 5168 additions and 24 deletions

View File

@@ -4,12 +4,13 @@
<mapper namespace="com.cnbm.admin.dao.SysRoleDataScopeDao">
<select id="getDeptIdList" resultType="long">
select dept_id from sys_role_data_scope where role_id = #{value}
select dept_id from sys_role_data_scope where role_id = #{value} AND valid = 1
</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
AND t1.valid = 1
</select>
<delete id="deleteByRoleIds">
@@ -17,6 +18,7 @@
<foreach item="roleId" collection="array" open="(" separator="," close=")">
#{roleId}
</foreach>
AND valid = 1
</delete>
</mapper>