เพิ่มคำนวนเงินเดือนตำแหน่ง ฉ
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: {
|
where: {
|
||||||
posTypeId: Level.posTypeId,
|
posTypeId: Level.posTypeId,
|
||||||
posLevelId: Level.id,
|
posLevelId: Level.id,
|
||||||
|
isSpecial: salaryProfile.isSpecial == false ? false : true,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
@ -683,6 +684,7 @@ export class SalaryPeriodController extends Controller {
|
||||||
where: {
|
where: {
|
||||||
posTypeId: Level.posTypeId,
|
posTypeId: Level.posTypeId,
|
||||||
posLevelId: Level.id,
|
posLevelId: Level.id,
|
||||||
|
isSpecial: salaryProfile.isSpecial == false ? false : true,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
@ -1054,6 +1056,7 @@ export class SalaryPeriodController extends Controller {
|
||||||
where: {
|
where: {
|
||||||
posTypeId: posLevel.posTypeId,
|
posTypeId: posLevel.posTypeId,
|
||||||
posLevelId: posLevel.id,
|
posLevelId: posLevel.id,
|
||||||
|
isSpecial: salaryProfile.isSpecial == false ? false : true,
|
||||||
isActive: true,
|
isActive: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -294,6 +294,13 @@ export class SalaryProfile extends EntityBase {
|
||||||
})
|
})
|
||||||
isNext: boolean;
|
isNext: boolean;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
comment: "ฉ",
|
||||||
|
default: null,
|
||||||
|
})
|
||||||
|
isSpecial: boolean;
|
||||||
|
|
||||||
@ManyToOne(() => SalaryOrg, (salaryOrg) => salaryOrg.salaryProfiles)
|
@ManyToOne(() => SalaryOrg, (salaryOrg) => salaryOrg.salaryProfiles)
|
||||||
@JoinColumn({ name: "salaryOrgId" })
|
@JoinColumn({ name: "salaryOrgId" })
|
||||||
salaryOrg: SalaryOrg;
|
salaryOrg: SalaryOrg;
|
||||||
|
|
@ -395,4 +402,7 @@ export class CreateSalaryProfile {
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
isRetired: boolean;
|
isRetired: boolean;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
isSpecial: boolean;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -346,6 +346,13 @@ export class SalaryProfileEmployee extends EntityBase {
|
||||||
})
|
})
|
||||||
isNext: boolean;
|
isNext: boolean;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
comment: "ฉ",
|
||||||
|
default: null,
|
||||||
|
})
|
||||||
|
isSpecial: boolean;
|
||||||
|
|
||||||
@ManyToOne(() => SalaryOrgEmployee, (salaryOrg) => salaryOrg.salaryProfiles)
|
@ManyToOne(() => SalaryOrgEmployee, (salaryOrg) => salaryOrg.salaryProfiles)
|
||||||
@JoinColumn({ name: "salaryOrgId" })
|
@JoinColumn({ name: "salaryOrgId" })
|
||||||
salaryOrg: SalaryOrgEmployee;
|
salaryOrg: SalaryOrgEmployee;
|
||||||
|
|
@ -456,4 +463,7 @@ export class CreateSalaryProfileEmployee {
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
isRetired: boolean;
|
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