update 优化 增加默认数据权限 "部门及以下或本人数据权限" 选项

dev
疯狂的狮子Li 1 year ago
parent e330350960
commit a676916da2

@ -48,7 +48,12 @@ public enum DataScopeType {
/**
*
*/
SELF("5", " #{#userName} = #{#user.userId} ", " 1 = 0 ");
SELF("5", " #{#userName} = #{#user.userId} ", " 1 = 0 "),
/**
*
*/
DEPT_AND_CHILD_OR_SELF("6", " #{#deptName} IN ( #{@sdss.getDeptAndChild( #user.deptId )} ) OR #{#userName} = #{#user.userId} ", " 1 = 0 ");
private final String code;

Loading…
Cancel
Save