部门删除校验条件修改

pull/17/MERGE
RuoYi 2018-07-26 17:47:14 +08:00
parent 791c767aed
commit 43bde8362b
2 changed files with 2 additions and 9 deletions

View File

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

View File

@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<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 id="selectDeptCount" parameterType="Dept" resultType="int">