add personal

This commit is contained in:
Warunee Tamkoo 2024-10-25 13:09:29 +07:00
parent fd42120b9d
commit 1a73f644d7
2 changed files with 12 additions and 0 deletions

View file

@ -77,6 +77,12 @@ export class PersonalController extends Controller {
personalData.orgRootName = requestBody.orgRootName;
personalData.organization = organization;
personalData.root = requestBody.root;
personalData.child1 = requestBody.child1;
personalData.child2 = requestBody.child2;
personalData.child3 = requestBody.child3;
personalData.child4 = requestBody.child4;
const before = null;
const personal = await this.personalRepository.save(personalData, {
data: request,

View file

@ -189,6 +189,12 @@ export class PostPersonal {
positionArea?: string | null;
posExecutiveName?: string | null;
positionExecutiveField?: string | null;
root?: string | null;
child1?: string | null;
child2?: string | null;
child3?: string | null;
child4?: string | null;
}
export type UpdatePersonal = Partial<CreatePersonal>;