create table sys_role_dept ( role_id bigint not null comment '角色ID', dept_id bigint not null comment '部门ID', primary key (role_id, dept_id) ) comment '角色和部门关联表'; INSERT INTO ruoyi.sys_role_dept (role_id, dept_id) VALUES (1960316477504557058, 1960316477680717825);