migrate and update
This commit is contained in:
parent
e01ac9d705
commit
0a4d3cf71f
3 changed files with 28 additions and 1 deletions
|
|
@ -431,7 +431,7 @@ export class ReoportController {
|
|||
evaluation.salaries.length > 0
|
||||
? evaluation.salaries.map((salaries) => ({
|
||||
date: salaries.commandDateAffect
|
||||
? Extension.ToThaiNumber(Extension.ToThaiShortDate_noPrefix(salaries.commandDateAffect))
|
||||
? Extension.ToThaiNumber(Extension.ToThaiFullDate2(salaries.commandDateAffect))
|
||||
: "-",
|
||||
amount: salaries.amount
|
||||
? Extension.ToThaiNumber(salaries.amount.toLocaleString())
|
||||
|
|
|
|||
|
|
@ -230,6 +230,11 @@ export class Evaluation extends EntityBase {
|
|||
@Column({ nullable: true, comment: "ตำแหน่งเดิม ผู้บังคับบัญชาเหนือขึ้นไป 1 ระดับ doc2" })
|
||||
commanderAbovePositionOldDoc2: string;
|
||||
|
||||
@Column({ nullable: true, comment: "ด้าน/สาขา" })
|
||||
positionArea: string;
|
||||
@Column({ nullable: true, comment: "ตำแหน่งทางการบริหาร" })
|
||||
posExecutive: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ชื่อ-นามสกุล ผู้บังคับบัญชาเหนือขึ้นไป 1 ระดับ (จัดเตรียมเอกสารเล่ม 2)",
|
||||
|
|
@ -402,6 +407,12 @@ export class CreateEvaluation {
|
|||
|
||||
@Column()
|
||||
orgRootId?: string | null;
|
||||
|
||||
@Column()
|
||||
positionArea?: string;
|
||||
|
||||
@Column()
|
||||
posExecutive?: string;
|
||||
}
|
||||
|
||||
export class CreateEducation {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class AddFieldPosExAndPosAreaTableEvaluation1745394229016 implements MigrationInterface {
|
||||
name = 'AddFieldPosExAndPosAreaTableEvaluation1745394229016'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`evaluation\` ADD \`positionArea\` varchar(255) NULL COMMENT 'ด้าน/สาขา'`);
|
||||
await queryRunner.query(`ALTER TABLE \`evaluation\` ADD \`posExecutive\` varchar(255) NULL COMMENT 'ตำแหน่งทางการบริหาร'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`evaluation\` DROP COLUMN \`posExecutive\``);
|
||||
await queryRunner.query(`ALTER TABLE \`evaluation\` DROP COLUMN \`positionArea\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue