เพิ่มคำนวนเงินเดือนตำแหน่ง ฉ
This commit is contained in:
parent
822035838d
commit
7a0fec256c
4 changed files with 39 additions and 0 deletions
|
|
@ -372,6 +372,7 @@ export class SalaryPeriodController extends Controller {
|
|||
where: {
|
||||
posTypeId: Level.posTypeId,
|
||||
posLevelId: Level.id,
|
||||
isSpecial: salaryProfile.isSpecial == false ? false : true,
|
||||
isActive: true,
|
||||
},
|
||||
});
|
||||
|
|
@ -683,6 +684,7 @@ export class SalaryPeriodController extends Controller {
|
|||
where: {
|
||||
posTypeId: Level.posTypeId,
|
||||
posLevelId: Level.id,
|
||||
isSpecial: salaryProfile.isSpecial == false ? false : true,
|
||||
isActive: true,
|
||||
},
|
||||
});
|
||||
|
|
@ -1054,6 +1056,7 @@ export class SalaryPeriodController extends Controller {
|
|||
where: {
|
||||
posTypeId: posLevel.posTypeId,
|
||||
posLevelId: posLevel.id,
|
||||
isSpecial: salaryProfile.isSpecial == false ? false : true,
|
||||
isActive: true,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
|
|
@ -294,6 +294,13 @@ export class SalaryProfile extends EntityBase {
|
|||
})
|
||||
isNext: boolean;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ฉ",
|
||||
default: null,
|
||||
})
|
||||
isSpecial: boolean;
|
||||
|
||||
@ManyToOne(() => SalaryOrg, (salaryOrg) => salaryOrg.salaryProfiles)
|
||||
@JoinColumn({ name: "salaryOrgId" })
|
||||
salaryOrg: SalaryOrg;
|
||||
|
|
@ -395,4 +402,7 @@ export class CreateSalaryProfile {
|
|||
|
||||
@Column()
|
||||
isRetired: boolean;
|
||||
|
||||
@Column()
|
||||
isSpecial: boolean;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -346,6 +346,13 @@ export class SalaryProfileEmployee extends EntityBase {
|
|||
})
|
||||
isNext: boolean;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "ฉ",
|
||||
default: null,
|
||||
})
|
||||
isSpecial: boolean;
|
||||
|
||||
@ManyToOne(() => SalaryOrgEmployee, (salaryOrg) => salaryOrg.salaryProfiles)
|
||||
@JoinColumn({ name: "salaryOrgId" })
|
||||
salaryOrg: SalaryOrgEmployee;
|
||||
|
|
@ -456,4 +463,7 @@ export class CreateSalaryProfileEmployee {
|
|||
|
||||
@Column()
|
||||
isRetired: boolean;
|
||||
|
||||
@Column()
|
||||
isSpecial: boolean;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTableSalaryProfileEmployeeAddIsSpecial1712043041340 implements MigrationInterface {
|
||||
name = 'UpdateTableSalaryProfileEmployeeAddIsSpecial1712043041340'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` ADD \`isSpecial\` tinyint NULL COMMENT 'ฉ'`);
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`isSpecial\` tinyint NULL COMMENT 'ฉ'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfile\` DROP COLUMN \`isSpecial\``);
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfileEmployee\` DROP COLUMN \`isSpecial\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue