From e28f65f5f4de6a53022c28fd5fbe4b03c2b493f7 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Mon, 24 Feb 2025 17:17:21 +0700 Subject: [PATCH] fix commandNo : type (String) --- src/entities/ProfileSalary.ts | 10 +++++----- src/entities/ProfileSalaryHistory.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/entities/ProfileSalary.ts b/src/entities/ProfileSalary.ts index d4039270..4ff74553 100644 --- a/src/entities/ProfileSalary.ts +++ b/src/entities/ProfileSalary.ts @@ -36,7 +36,7 @@ export class ProfileSalary extends EntityBase { comment: "เลขที่คำสั่ง", default: null, }) - commandNo: number; + commandNo: string; @Column({ nullable: true, @@ -266,7 +266,7 @@ export class CreateProfileSalary { positionCee?: string | null; commandCode?: string | null; commandName?: string | null; - commandNo?: number | null; + commandNo?: string | null; commandYear?: number | null; } @@ -293,7 +293,7 @@ export class CreateProfileSalaryEmployee { positionCee?: string | null; commandCode?: string | null; commandName?: string | null; - commandNo?: number | null; + commandNo?: string | null; commandYear?: number | null; } @@ -318,7 +318,7 @@ export class UpdateProfileSalaryEmployee { positionCee?: string | null; commandCode?: string | null; commandName?: string | null; - commandNo?: number | null; + commandNo?: string | null; commandYear?: number | null; } @@ -344,6 +344,6 @@ export type UpdateProfileSalary = { positionCee?: string | null; commandCode?: string | null; commandName?: string | null; - commandNo?: number | null; + commandNo?: string | null; commandYear?: number | null; }; diff --git a/src/entities/ProfileSalaryHistory.ts b/src/entities/ProfileSalaryHistory.ts index de1c212e..bd6f54c6 100644 --- a/src/entities/ProfileSalaryHistory.ts +++ b/src/entities/ProfileSalaryHistory.ts @@ -17,7 +17,7 @@ export class ProfileSalaryHistory extends EntityBase { comment: "เลขที่คำสั่ง", default: null, }) - commandNo: number; + commandNo: string; @Column({ nullable: true,