no message
This commit is contained in:
parent
e4c08a5dc5
commit
fb4732a724
2 changed files with 15 additions and 2 deletions
|
|
@ -494,6 +494,9 @@ export class ProfileEmployeeController extends Controller {
|
||||||
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลประเภทตำแหน่งนี้");
|
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลประเภทตำแหน่งนี้");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(body.employeeClass == null || body.employeeClass == undefined || body.employeeClass == ""){
|
||||||
|
body.employeeClass = "PERM";
|
||||||
|
}
|
||||||
if (!["PERM", "TEMP"].includes(body.employeeClass.toLocaleUpperCase())) {
|
if (!["PERM", "TEMP"].includes(body.employeeClass.toLocaleUpperCase())) {
|
||||||
throw new HttpError(HttpStatus.NOT_FOUND, "ประเภทลูกจ้างไม่ถูกต้อง");
|
throw new HttpError(HttpStatus.NOT_FOUND, "ประเภทลูกจ้างไม่ถูกต้อง");
|
||||||
}
|
}
|
||||||
|
|
@ -556,6 +559,9 @@ export class ProfileEmployeeController extends Controller {
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if(body.employeeClass == null || body.employeeClass == undefined || body.employeeClass == ""){
|
||||||
|
body.employeeClass = "PERM";
|
||||||
|
}
|
||||||
if (!["PERM", "TEMP"].includes(body.employeeClass.toLocaleUpperCase())) {
|
if (!["PERM", "TEMP"].includes(body.employeeClass.toLocaleUpperCase())) {
|
||||||
throw new HttpError(HttpStatus.NOT_FOUND, "ประเภทลูกจ้างไม่ถูกต้อง");
|
throw new HttpError(HttpStatus.NOT_FOUND, "ประเภทลูกจ้างไม่ถูกต้อง");
|
||||||
}
|
}
|
||||||
|
|
@ -779,6 +785,11 @@ export class ProfileEmployeeController extends Controller {
|
||||||
position: _data.position,
|
position: _data.position,
|
||||||
posNo: shortName,
|
posNo: shortName,
|
||||||
employeeClass: _data.employeeClass == null ? null : _data.employeeClass,
|
employeeClass: _data.employeeClass == null ? null : _data.employeeClass,
|
||||||
|
dateAppoint: _data.dateAppoint,
|
||||||
|
dateStart: _data.dateStart,
|
||||||
|
createdAt: _data.createdAt,
|
||||||
|
dateRetireLaw: _data.dateRetireLaw,
|
||||||
|
draftOrgEmployeeStatus: null
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -488,7 +488,8 @@ export class CreateProfileEmployee {
|
||||||
religion?: string | null;
|
religion?: string | null;
|
||||||
bloodGroup?: string | null;
|
bloodGroup?: string | null;
|
||||||
phone?: string | null;
|
phone?: string | null;
|
||||||
employeeClass: string;
|
salaryLevel?: number | null;
|
||||||
|
employeeClass?: string | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UpdateProfileEmployee = {
|
export type UpdateProfileEmployee = {
|
||||||
|
|
@ -508,7 +509,8 @@ export type UpdateProfileEmployee = {
|
||||||
religion?: string | null;
|
religion?: string | null;
|
||||||
bloodGroup?: string | null;
|
bloodGroup?: string | null;
|
||||||
phone?: string | null;
|
phone?: string | null;
|
||||||
employeeClass: string;
|
salaryLevel?: number | null;
|
||||||
|
employeeClass?: string | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UpdateProfileAddressEmployee = {
|
export type UpdateProfileAddressEmployee = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue