diff --git a/src/controllers/DevelopmentController.ts b/src/controllers/DevelopmentController.ts index b2b7aaf..2cd5f30 100644 --- a/src/controllers/DevelopmentController.ts +++ b/src/controllers/DevelopmentController.ts @@ -2188,6 +2188,7 @@ export class DevelopmentController extends Controller { position: x.plannedGoalPositions.map((y) => ({ id: y.id, position: y.position, + posExecutive: y.posExecutive, posTypeId: y.posTypePlannedId, posType: y.posTypePlanned == null ? null : y.posTypePlanned.posTypeName, posLevelId: y.posLevelPlannedId, diff --git a/src/entities/PlannedGoalPosition.ts b/src/entities/PlannedGoalPosition.ts index 01a088c..990c977 100644 --- a/src/entities/PlannedGoalPosition.ts +++ b/src/entities/PlannedGoalPosition.ts @@ -13,6 +13,13 @@ export class PlannedGoalPosition extends EntityBase { }) position: string; + @Column({ + nullable: true, + comment: "ตำแหน่งทางการบริหาร", + default: null, + }) + posExecutive: string; + @Column({ nullable: true, comment: "ประเภทตำแหน่ง", @@ -51,6 +58,8 @@ export class CreatePlannedGoalPosition { @Column() position: string | null; @Column() + posExecutive: string | null; + @Column() posTypePlannedId: string | null; @Column() posLevelPlannedId: string | null;