|
@@ -71,12 +71,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
from sys_role r
|
|
|
left join sys_user_role ur on ur.role_id = r.role_id
|
|
|
left join sys_user u on u.id = ur.user_id
|
|
|
- where u.id = #{userId}
|
|
|
+ where u.id = #{userId} and r.del_flag = '1'
|
|
|
</select>
|
|
|
|
|
|
<select id="selectRoleById" parameterType="Long" resultMap="SysRoleResult">
|
|
|
<include refid="selectRoleVo"/>
|
|
|
- where r.role_id = #{roleId}
|
|
|
+ where r.role_id = #{roleId} and r.del_flag = '1'
|
|
|
</select>
|
|
|
|
|
|
<select id="selectRolesByUserName" parameterType="String" resultMap="SysRoleResult">
|
|
@@ -94,7 +94,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where r.role_key=#{roleKey} and r.del_flag = '1' limit 1
|
|
|
</select>
|
|
|
<select id="getRoleId" resultType="java.lang.Long">
|
|
|
- select role_id from sys_role where role_name = #{roleName}
|
|
|
+ select role_id from sys_role where role_name = #{roleName} and del_flag = '1'
|
|
|
</select>
|
|
|
<select id="selectSysRoleList" resultMap="SysRoleResult" parameterType="com.ozs.common.core.domain.vo.SysRoleRequestVo">
|
|
|
select distinct r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.menu_check_strictly, r.dept_check_strictly,
|
|
@@ -134,7 +134,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
order by r.role_sort
|
|
|
</select>
|
|
|
<select id="getRoleKey" resultType="java.lang.String">
|
|
|
- select role_key from sys_role where role_id = #{roleId}
|
|
|
+ select role_key from sys_role where role_id = #{roleId} and del_flag = '1'
|
|
|
</select>
|
|
|
<select id="roleList" resultMap="SysRoleResult" parameterType="com.ozs.common.core.domain.vo.SysRoleRequestVo">
|
|
|
select distinct r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.menu_check_strictly, r.dept_check_strictly,
|