Merge branch 'develop' into adiDev
This commit is contained in:
commit
0a054d91ce
3 changed files with 35 additions and 0 deletions
|
|
@ -1494,6 +1494,7 @@ export class ProfileController extends Controller {
|
||||||
prefix: profile.prefix,
|
prefix: profile.prefix,
|
||||||
rank: profile.rank,
|
rank: profile.rank,
|
||||||
avatar: profile.avatar,
|
avatar: profile.avatar,
|
||||||
|
isProbation: profile.isProbation,
|
||||||
avatarName: profile.avatarName,
|
avatarName: profile.avatarName,
|
||||||
firstName: profile.firstName,
|
firstName: profile.firstName,
|
||||||
lastName: profile.lastName,
|
lastName: profile.lastName,
|
||||||
|
|
|
||||||
|
|
@ -47,6 +47,9 @@ export class ProfileChangePosition extends EntityBase {
|
||||||
@Column({ nullable: true, comment: "เลขบัตรประชาชน", default: null })
|
@Column({ nullable: true, comment: "เลขบัตรประชาชน", default: null })
|
||||||
citizenId: string;
|
citizenId: string;
|
||||||
|
|
||||||
|
@Column({ nullable: true, type: "datetime", comment: "วันเกิด", default: null })
|
||||||
|
birthDate: Date;
|
||||||
|
|
||||||
@Column({ nullable: true, comment: "ชื่อหน่วยงาน root", default: null })
|
@Column({ nullable: true, comment: "ชื่อหน่วยงาน root", default: null })
|
||||||
root: string;
|
root: string;
|
||||||
|
|
||||||
|
|
@ -201,6 +204,7 @@ export class ProfileChangePosition extends EntityBase {
|
||||||
profile: ChangePosition;
|
profile: ChangePosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//เพิ่มรายชื่อผู้ที่ย้ายสับเปลี่ยนตำแหน่ง
|
||||||
export class CreateProfileChangePosition {
|
export class CreateProfileChangePosition {
|
||||||
changePositionId: string;
|
changePositionId: string;
|
||||||
profiles: ProfileItem[]
|
profiles: ProfileItem[]
|
||||||
|
|
@ -241,3 +245,19 @@ export class ProfileItem {
|
||||||
posLevelOldId: string | null;
|
posLevelOldId: string | null;
|
||||||
posLevelNameOld: string | null;
|
posLevelNameOld: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//เลือกหน่วยงานที่รับย้าย
|
||||||
|
export type UpdateProfileChangePosition = {
|
||||||
|
posmasterId: string;
|
||||||
|
node: number;
|
||||||
|
nodeId: string;
|
||||||
|
orgRevisionId: string;
|
||||||
|
positionId: string;
|
||||||
|
posMasterNo: number;
|
||||||
|
position: string;
|
||||||
|
positionField: string;
|
||||||
|
posTypeId: string | null;
|
||||||
|
posTypeName: string;
|
||||||
|
posLevelId: string | null;
|
||||||
|
posLevelName: string;
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||||
|
|
||||||
|
export class UpdateTableProfilechageAddBirthdate1718188662070 implements MigrationInterface {
|
||||||
|
name = 'UpdateTableProfilechageAddBirthdate1718188662070'
|
||||||
|
|
||||||
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`profileChangePosition\` ADD \`birthDate\` datetime NULL COMMENT 'วันเกิด'`);
|
||||||
|
}
|
||||||
|
|
||||||
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||||
|
await queryRunner.query(`ALTER TABLE \`profileChangePosition\` DROP COLUMN \`birthDate\``);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue