แก้ฟิว ออกคำสั่ง
This commit is contained in:
parent
ba8d78b11c
commit
2af2f32cf7
3 changed files with 39 additions and 24 deletions
|
|
@ -276,10 +276,7 @@ export class CommandController extends Controller {
|
||||||
.map((x) => ({
|
.map((x) => ({
|
||||||
id: x.id,
|
id: x.id,
|
||||||
citizenId: x.citizenId,
|
citizenId: x.citizenId,
|
||||||
prefix: x.prefix,
|
fullName: x.fullName,
|
||||||
firstName: x.firstName,
|
|
||||||
lastName: x.lastName,
|
|
||||||
// profileId: x.profileId,
|
|
||||||
order: x.order,
|
order: x.order,
|
||||||
remarkVertical: x.remarkVertical,
|
remarkVertical: x.remarkVertical,
|
||||||
remarkHorizontal: x.remarkHorizontal,
|
remarkHorizontal: x.remarkHorizontal,
|
||||||
|
|
@ -992,9 +989,7 @@ export class CommandController extends Controller {
|
||||||
persons: {
|
persons: {
|
||||||
refId: string;
|
refId: string;
|
||||||
citizenId: string;
|
citizenId: string;
|
||||||
prefix: string;
|
fullName: string;
|
||||||
firstName: string;
|
|
||||||
lastName: string;
|
|
||||||
}[];
|
}[];
|
||||||
},
|
},
|
||||||
@Request() request: RequestWithUser,
|
@Request() request: RequestWithUser,
|
||||||
|
|
@ -1102,7 +1097,7 @@ export class CommandController extends Controller {
|
||||||
case "C-PM-06":
|
case "C-PM-06":
|
||||||
return "/placemant/appointment/slip/report/";
|
return "/placemant/appointment/slip/report/";
|
||||||
case "C-PM-07":
|
case "C-PM-07":
|
||||||
return "/xxxxxx/";
|
return "/placemant/appointment/move/report/";
|
||||||
case "C-PM-08":
|
case "C-PM-08":
|
||||||
return "/xxxxxx/";
|
return "/xxxxxx/";
|
||||||
case "C-PM-09":
|
case "C-PM-09":
|
||||||
|
|
|
||||||
|
|
@ -14,27 +14,27 @@ export class CommandRecive extends EntityBase {
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
comment: "คำนำหน้า",
|
comment: "ชื่อ-สกุล",
|
||||||
length: 255,
|
length: 255,
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
prefix: string;
|
fullName: string;
|
||||||
|
|
||||||
@Column({
|
// @Column({
|
||||||
nullable: true,
|
// nullable: true,
|
||||||
comment: "ชื่อ",
|
// comment: "ชื่อ",
|
||||||
length: 255,
|
// length: 255,
|
||||||
default: null,
|
// default: null,
|
||||||
})
|
// })
|
||||||
firstName: string;
|
// firstName: string;
|
||||||
|
|
||||||
@Column({
|
// @Column({
|
||||||
nullable: true,
|
// nullable: true,
|
||||||
comment: "สกุล",
|
// comment: "สกุล",
|
||||||
length: 255,
|
// length: 255,
|
||||||
default: null,
|
// default: null,
|
||||||
})
|
// })
|
||||||
lastName: string;
|
// lastName: string;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true,
|
nullable: true,
|
||||||
|
|
|
||||||
20
src/migration/1727851675456-update_ProfileDevelopment2.ts
Normal file
20
src/migration/1727851675456-update_ProfileDevelopment2.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
|
export class UpdateProfileDevelopment21727851675456 implements MigrationInterface {
|
||||||
|
name = 'UpdateProfileDevelopment21727851675456'
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`commandRecive\` DROP COLUMN \`firstName\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`commandRecive\` DROP COLUMN \`lastName\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`commandRecive\` DROP COLUMN \`prefix\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`commandRecive\` ADD \`fullName\` varchar(255) NULL COMMENT 'ชื่อ-สกุล'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`commandRecive\` DROP COLUMN \`fullName\``);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`commandRecive\` ADD \`prefix\` varchar(255) NULL COMMENT 'คำนำหน้า'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`commandRecive\` ADD \`lastName\` varchar(255) NULL COMMENT 'สกุล'`);
|
||||||
|
await queryRunner.query(`ALTER TABLE \`commandRecive\` ADD \`firstName\` varchar(255) NULL COMMENT 'ชื่อ'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue