This commit is contained in:
Adisak 2025-10-22 16:31:10 +07:00
parent dea973f8d9
commit 137bdb5c0c

View file

@ -2042,6 +2042,7 @@ export class EmployeeTempPositionController extends Controller {
}, },
relations: [ relations: [
"positions", "positions",
"positions.posType",
"orgRevision", "orgRevision",
"orgRoot", "orgRoot",
"orgChild1", "orgChild1",
@ -2077,6 +2078,7 @@ export class EmployeeTempPositionController extends Controller {
profile.posTypeId = position?.posTypeId ?? _null; profile.posTypeId = position?.posTypeId ?? _null;
profile.position = position?.positionName ?? _null; profile.position = position?.positionName ?? _null;
profile.employeeOc = Org ?? _null; profile.employeeOc = Org ?? _null;
profile.positionEmployeeGroupId = position?.posType?.posTypeName ?? _null;
profile.positionEmployeePositionId = position?.positionName ?? _null; profile.positionEmployeePositionId = position?.positionName ?? _null;
await this.profileRepository.save(profile); await this.profileRepository.save(profile);
} }