mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 优化 增加默认数据权限 "部门及以下或本人数据权限" 选项
This commit is contained in:
		@@ -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;
 | 
					    private final String code;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user