From a4ebb83184929b37ffe8147dd964b2728bddba09 Mon Sep 17 00:00:00 2001 From: kittapath Date: Fri, 14 Mar 2025 15:32:17 +0700 Subject: [PATCH] add pos exe --- src/controllers/DevelopmentController.ts | 1 + src/entities/PlannedGoalPosition.ts | 9 +++++++++ 2 files changed, 10 insertions(+) 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;