This commit is contained in:
AdisakKanthawilang 2024-06-12 10:50:07 +07:00
parent 7bb199d254
commit e60d47e9f0
3 changed files with 7 additions and 7 deletions

View file

@ -90,7 +90,7 @@ export class AuthRoleController extends Controller {
attrIsUpdate: boolean;
attrIsDelete: boolean;
attrPrivilege: string;
parentNode: string;
// parentNode: string;
}>;
},
) {
@ -102,7 +102,7 @@ export class AuthRoleController extends Controller {
attrOwnership: attr.attrOwnership.toUpperCase(),
attrPrivilege: attr.attrPrivilege.toUpperCase(),
authSysId: attr.authSysId.toUpperCase(),
parentNode: attr.parentNode.toUpperCase(),
// parentNode: attr.parentNode.toUpperCase(),
}));
Object.assign(record, {

View file

@ -75,9 +75,9 @@ export class AuthRoleAttr extends EntityBase {
})
parentNode?: string | null;
@ManyToOne(() => AuthSys, (authSys) => authSys.authSys)
@JoinColumn({ name: "authSysId" })
authRoleAttrForSys: AuthSys;
// @ManyToOne(() => AuthSys, (authSys) => authSys.authSys)
// @JoinColumn({ name: "authSysId" })
// authRoleAttrForSys: AuthSys;
@ManyToOne(() => AuthRole, (authRole) => authRole.authRoles)
@JoinColumn({ name: "authRoleId" })

View file

@ -58,8 +58,8 @@ export class AuthSys {
})
sysDescription: string;
@OneToMany(() => AuthRoleAttr, (authRoleAttr) => authRoleAttr.authRoleAttrForSys)
authSys: AuthRoleAttr[];
// @OneToMany(() => AuthRoleAttr, (authRoleAttr) => authRoleAttr.authRoleAttrForSys)
// authSys: AuthRoleAttr[];
}
export class CreateAuthSys {