status start NEW
This commit is contained in:
parent
6dfe7203d4
commit
f247d20afb
3 changed files with 16 additions and 2 deletions
|
|
@ -127,7 +127,7 @@ export class KpiUserEvaluationController extends Controller {
|
||||||
kpiUserEvaluation.lastName = x.lastName;
|
kpiUserEvaluation.lastName = x.lastName;
|
||||||
})
|
})
|
||||||
.catch((x) => {});
|
.catch((x) => {});
|
||||||
kpiUserEvaluation.evaluationStatus = "PENDING";
|
kpiUserEvaluation.evaluationStatus = "NEW";
|
||||||
kpiUserEvaluation.evaluationResults = "PENDING";
|
kpiUserEvaluation.evaluationResults = "PENDING";
|
||||||
kpiUserEvaluation.createdUserId = request.user.sub;
|
kpiUserEvaluation.createdUserId = request.user.sub;
|
||||||
kpiUserEvaluation.createdFullName = request.user.name;
|
kpiUserEvaluation.createdFullName = request.user.name;
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ export class KpiUserEvaluation extends EntityBase {
|
||||||
length: 40,
|
length: 40,
|
||||||
comment:
|
comment:
|
||||||
"สถานะการประเมินผล ดังนี้ NEW = รอดำเนินการ, INPROGRESS = กําลังดำเนินการ, DONE = ประเมินเสร็จสิ้น",
|
"สถานะการประเมินผล ดังนี้ NEW = รอดำเนินการ, INPROGRESS = กําลังดำเนินการ, DONE = ประเมินเสร็จสิ้น",
|
||||||
default: null,
|
default: "NEW",
|
||||||
})
|
})
|
||||||
evaluationStatus: string;
|
evaluationStatus: string;
|
||||||
|
|
||||||
|
|
|
||||||
14
src/migration/1715151729330-add_table_kpiDevelopment1.ts
Normal file
14
src/migration/1715151729330-add_table_kpiDevelopment1.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
|
export class AddTableKpiDevelopment11715151729330 implements MigrationInterface {
|
||||||
|
name = 'AddTableKpiDevelopment11715151729330'
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` CHANGE \`evaluationStatus\` \`evaluationStatus\` varchar(40) NULL COMMENT 'สถานะการประเมินผล ดังนี้ NEW = รอดำเนินการ, INPROGRESS = กําลังดำเนินการ, DONE = ประเมินเสร็จสิ้น' DEFAULT 'NEW'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` CHANGE \`evaluationStatus\` \`evaluationStatus\` varchar(40) NULL COMMENT 'สถานะการประเมินผล ดังนี้ NEW = รอดำเนินการ, INPROGRESS = กําลังดำเนินการ, DONE = ประเมินเสร็จสิ้น'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue