✨ 组织树独立权限、平台公司回写、合同计费客商角色与查看菜单补齐
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+4
@@ -203,14 +203,18 @@ public class Dept extends TenantEntity {
|
||||
|
||||
/**
|
||||
* 是否平台公司:0否,1是
|
||||
* ALWAYS:保证「否(0)」也能更新落库,避免被字段策略跳过
|
||||
*/
|
||||
@Schema(description = "是否平台公司:0否,1是")
|
||||
@TableField(updateStrategy = FieldStrategy.ALWAYS)
|
||||
private Integer isPlatformCompany;
|
||||
|
||||
/**
|
||||
* 是否业务部门:0否,1是
|
||||
* ALWAYS:保证「否(0)」也能更新落库,避免被字段策略跳过
|
||||
*/
|
||||
@Schema(description = "是否业务部门:0否,1是")
|
||||
@TableField(updateStrategy = FieldStrategy.ALWAYS)
|
||||
private Integer isBusinessDept;
|
||||
|
||||
/**
|
||||
|
||||
+12
@@ -67,6 +67,18 @@ public class RoleDataScopeVO implements Serializable {
|
||||
return scope;
|
||||
}
|
||||
|
||||
/**
|
||||
* 无组织可见(未配置数据权限时的默认结果)
|
||||
*/
|
||||
public static RoleDataScopeVO none() {
|
||||
RoleDataScopeVO scope = new RoleDataScopeVO();
|
||||
scope.setScopeType(RoleDataScopeType.CUSTOM.getCode());
|
||||
scope.setAllDept(false);
|
||||
scope.setOwnCreate(false);
|
||||
scope.setDeptIds(Collections.emptyList());
|
||||
return scope;
|
||||
}
|
||||
|
||||
public static RoleDataScopeVO ownCreate() {
|
||||
RoleDataScopeVO scope = new RoleDataScopeVO();
|
||||
scope.setScopeType(RoleDataScopeType.OWN_CREATE.getCode());
|
||||
|
||||
Reference in New Issue
Block a user