api รอบย้ายสับเปลี่ยนตำแหน่ง

This commit is contained in:
Bright 2024-06-12 10:06:53 +07:00
parent 8145722355
commit c1602a5512
2 changed files with 114 additions and 5 deletions

View file

@ -535,6 +535,7 @@ export class ProfileEmployeeController extends Controller {
profile.dateRetire = calculateRetireDate(profile.birthDate);
profile.dateRetireLaw = calculateRetireLaw(profile.birthDate);
profile.citizenId = Extension.CheckCitizen(profile.citizenId);
profile.statusTemp = profile.employeeClass.toLocaleUpperCase() == "TEMP" ? "WAITTING" : "";
profile.employeeClass = profile.employeeClass.toLocaleUpperCase();
await this.profileRepo.save(profile);
return new HttpSuccess();