feat: Enhance department management with parent ID validation and department scope handling

This commit is contained in:
2026-07-16 09:25:35 +08:00
parent e21e51de8a
commit 8dea752d48
7 changed files with 81 additions and 14 deletions

View File

@@ -1257,7 +1257,7 @@ create table "ks_db3"."sys_dept"
"dept_id" bigint not null,
"parent_id" bigint default 0
null,
"ancestors" varchar(50) default ''
"ancestors" text default ''
null,
"dept_name" varchar(30) default ''
null,
@@ -2633,4 +2633,3 @@ comment on table "ks_db3"."sys_user_role" is '用户和角色关联表';
comment on column "ks_db3"."sys_user_role"."role_id" is '角色id';
comment on column "ks_db3"."sys_user_role"."user_id" is '用户id';