แก้บันทึกผลประวัติตำแหน่ง

This commit is contained in:
kittapath 2025-03-10 12:52:52 +07:00
parent 750082e354
commit 34ebeac747
2 changed files with 81 additions and 66 deletions

View file

@ -34,9 +34,9 @@ export class MyCustomLogger implements Logger {
export const AppDataSource = new DataSource({
type: "mysql",
extra: {
timezone: "Asia/Bangkok", // Set to Bangkok timezone
},
// extra: {
// timezone: "Asia/Bangkok", // Set to Bangkok timezone
// },
database: process.env.DB_NAME,
host: process.env.DB_HOST,
port: +(process.env.DB_PORT || 3306),

View file

@ -257,107 +257,122 @@ export class ProfileSalary extends EntityBase {
export class CreateProfileSalary {
profileId: string | null;
commandCode?: string | null;
commandNo?: string | null;
commandYear?: number | null;
commandDateAffect?: Date | null;
commandDateSign?: Date | null;
posNoAbb: string | null;
posNo: string | null;
positionName: string | null;
positionType: string | null;
positionLevel: string | null;
positionLine?: string | null;
positionPathSide?: string | null;
positionExecutive: string | null;
amount?: Double | null;
amountSpecial?: Double | null;
positionSalaryAmount?: Double | null;
mouthSalaryAmount?: Double | null;
posNo: string | null;
posNoAbb: string | null;
positionName: string | null;
positionExecutive: string | null;
positionType: string | null;
positionLevel: string | null;
commandId?: string | null;
orgRootName?: string | null;
orgChild1Name?: string | null;
orgChild2Name?: string | null;
orgChild3Name?: string | null;
orgChild4Name?: string | null;
remark: string | null;
commandId?: string | null;
isGovernment?: boolean | null;
orgRoot?: string | null;
orgChild1?: string | null;
orgChild2?: string | null;
orgChild3?: string | null;
orgChild4?: string | null;
positionCee?: string | null;
commandCode?: string | null;
commandName?: string | null;
commandNo?: string | null;
commandYear?: number | null;
}
export class CreateProfileSalaryEmployee {
profileEmployeeId: string | null;
commandCode?: string | null;
commandNo?: string | null;
commandYear?: number | null;
commandDateAffect?: Date | null;
commandDateSign?: Date | null;
amount?: Double | null;
amountSpecial?: Double | null;
commandId?: string | null;
positionSalaryAmount?: Double | null;
mouthSalaryAmount?: Double | null;
posNo: string | null;
posNoAbb: string | null;
posNo: string | null;
positionName: string | null;
positionType: string | null;
positionLevel: string | null;
positionLine?: string | null;
positionPathSide?: string | null;
positionExecutive: string | null;
amount?: Double | null;
amountSpecial?: Double | null;
positionSalaryAmount?: Double | null;
mouthSalaryAmount?: Double | null;
orgRootName?: string | null;
orgChild1Name?: string | null;
orgChild2Name?: string | null;
orgChild3Name?: string | null;
orgChild4Name?: string | null;
remark: string | null;
orgRoot?: string | null;
orgChild1?: string | null;
orgChild2?: string | null;
orgChild3?: string | null;
orgChild4?: string | null;
commandId?: string | null;
isGovernment?: boolean | null;
positionCee?: string | null;
commandCode?: string | null;
commandName?: string | null;
commandNo?: string | null;
commandYear?: number | null;
}
export class UpdateProfileSalaryEmployee {
commandCode?: string | null;
commandNo?: string | null;
commandYear?: number | null;
commandDateAffect?: Date | null;
commandDateSign?: Date | null;
amount?: Double | null;
amountSpecial?: Double | null;
positionSalaryAmount?: Double | null;
mouthSalaryAmount?: Double | null;
posNo: string | null;
posNoAbb: string | null;
posNo: string | null;
positionName: string | null;
positionType: string | null;
positionLevel: string | null;
remark: string | null;
orgRoot?: string | null;
orgChild1?: string | null;
orgChild2?: string | null;
orgChild3?: string | null;
orgChild4?: string | null;
positionCee?: string | null;
commandCode?: string | null;
commandName?: string | null;
commandNo?: string | null;
commandYear?: number | null;
}
export type UpdateProfileSalary = {
commandDateAffect?: Date | null;
commandDateSign?: Date | null;
positionLine?: string | null;
positionPathSide?: string | null;
positionExecutive: string | null;
amount?: Double | null;
amountSpecial?: Double | null;
positionSalaryAmount?: Double | null;
mouthSalaryAmount?: Double | null;
posNo?: string | null;
posNoAbb: string | null;
positionName: string | null;
positionExecutive?: string | null;
positionType?: string | null;
positionLevel?: string | null;
remark?: string | null;
orgRoot?: string | null;
orgChild1?: string | null;
orgChild2?: string | null;
orgChild3?: string | null;
orgChild4?: string | null;
orgRootName?: string | null;
orgChild1Name?: string | null;
orgChild2Name?: string | null;
orgChild3Name?: string | null;
orgChild4Name?: string | null;
remark: string | null;
commandId?: string | null;
isGovernment?: boolean | null;
positionCee?: string | null;
commandCode?: string | null;
commandName?: string | null;
}
export type UpdateProfileSalary = {
commandCode?: string | null;
commandNo?: string | null;
commandYear?: number | null;
commandDateAffect?: Date | null;
commandDateSign?: Date | null;
posNoAbb: string | null;
posNo: string | null;
positionName: string | null;
positionType: string | null;
positionLevel: string | null;
positionLine?: string | null;
positionPathSide?: string | null;
positionExecutive: string | null;
amount?: Double | null;
amountSpecial?: Double | null;
positionSalaryAmount?: Double | null;
mouthSalaryAmount?: Double | null;
orgRootName?: string | null;
orgChild1Name?: string | null;
orgChild2Name?: string | null;
orgChild3Name?: string | null;
orgChild4Name?: string | null;
remark: string | null;
commandId?: string | null;
isGovernment?: boolean | null;
positionCee?: string | null;
commandName?: string | null;
};