This commit is contained in:
parent
30ddb4e3f3
commit
cf161f9809
1 changed files with 9 additions and 3 deletions
|
|
@ -7227,7 +7227,9 @@ export class OrganizationDotnetController extends Controller {
|
|||
dateStart: profileEmp?.dateStart ?? null,
|
||||
dateAppoint: profileEmp?.dateAppoint ?? null,
|
||||
keycloak: profileEmp?.keycloak ?? null,
|
||||
posNo: `${item.shortName} ${item.posMasterNo}`,
|
||||
posNo: `${item.shortName} ${[item.posMasterNoPrefix, item.posMasterNo, item.posMasterNoSuffix]
|
||||
.filter((p) => p !== null && p !== undefined && p !== "")
|
||||
.join(" ")}`,
|
||||
position: item.position,
|
||||
positionLevel: item.posLevel,
|
||||
positionType: item.posType,
|
||||
|
|
@ -8900,7 +8902,7 @@ export class OrganizationDotnetController extends Controller {
|
|||
|
||||
const profiles = await this.profileRepo.find({
|
||||
where: { id: In(profileIds) },
|
||||
select: ["id", "citizenId", "dateStart", "dateAppoint", "keycloak"],
|
||||
select: ["id", "citizenId", "dateStart", "dateAppoint", "keycloak", "posMasterNo"],
|
||||
});
|
||||
|
||||
const profileMap = new Map(profiles.map((p) => [p.id, p]));
|
||||
|
|
@ -8918,7 +8920,11 @@ export class OrganizationDotnetController extends Controller {
|
|||
dateStart: profile?.dateStart ?? null,
|
||||
dateAppoint: profile?.dateAppoint ?? null,
|
||||
keycloak: profile?.keycloak ?? null,
|
||||
posNo: profile?.posMasterNo ?? `${item.shortName} ${item.posMasterNo}`,
|
||||
posNo:
|
||||
profile?.posMasterNo ??
|
||||
`${item.shortName} ${[item.posMasterNoPrefix, item.posMasterNo, item.posMasterNoSuffix]
|
||||
.filter((p) => p !== null && p !== undefined && p !== "")
|
||||
.join(" ")}`,
|
||||
position: item.position,
|
||||
positionLevel: item.posLevel,
|
||||
positionType: item.posType,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue