部门删除校验条件修改

dep_wangsr
RuoYi 6 years ago committed by Limy
parent e49376dfc6
commit 77f33bde08

@ -18,14 +18,7 @@ public class PermissionService
private boolean isPermittedOperator(String permission) private boolean isPermittedOperator(String permission)
{ {
if (SecurityUtils.getSubject().isPermitted(permission)) return SecurityUtils.getSubject().isPermitted(permission);
{
return true;
}
else
{
return false;
}
} }
} }

@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
<select id="checkDeptExistUser" parameterType="Long" resultType="int"> <select id="checkDeptExistUser" parameterType="Long" resultType="int">
select count(*) from sys_user where dept_id = #{deptId} select count(*) from sys_user where dept_id = #{deptId} and del_flag = '0'
</select> </select>
<select id="selectDeptCount" parameterType="Dept" resultType="int"> <select id="selectDeptCount" parameterType="Dept" resultType="int">

Loading…
Cancel
Save