no message
This commit is contained in:
parent
096b008741
commit
b469ccd25a
1 changed files with 7 additions and 1 deletions
|
|
@ -803,6 +803,7 @@ export class OrganizationDotnetController extends Controller {
|
||||||
"posType",
|
"posType",
|
||||||
"posLevel",
|
"posLevel",
|
||||||
"current_holders",
|
"current_holders",
|
||||||
|
"current_holders.orgRoot",
|
||||||
"current_holders.orgChild1",
|
"current_holders.orgChild1",
|
||||||
"current_holders.orgChild2",
|
"current_holders.orgChild2",
|
||||||
"current_holders.orgChild3",
|
"current_holders.orgChild3",
|
||||||
|
|
@ -822,6 +823,10 @@ export class OrganizationDotnetController extends Controller {
|
||||||
|
|
||||||
const profile_ = await Promise.all(
|
const profile_ = await Promise.all(
|
||||||
profile.map((item: Profile) => {
|
profile.map((item: Profile) => {
|
||||||
|
const rootName =
|
||||||
|
item.current_holders.length == 0
|
||||||
|
? null
|
||||||
|
: item.current_holders.find((x) => x.orgRevisionId == findRevision?.id)?.orgRoot?.orgRootName;
|
||||||
const shortName =
|
const shortName =
|
||||||
item.current_holders.length == 0
|
item.current_holders.length == 0
|
||||||
? null
|
? null
|
||||||
|
|
@ -849,6 +854,7 @@ export class OrganizationDotnetController extends Controller {
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
oc: rootName,
|
||||||
id: item.id,
|
id: item.id,
|
||||||
createdAt: item.createdAt,
|
createdAt: item.createdAt,
|
||||||
createdUserId: item.createdUserId,
|
createdUserId: item.createdUserId,
|
||||||
|
|
@ -903,7 +909,7 @@ export class OrganizationDotnetController extends Controller {
|
||||||
positionLevel: item.profileSalary.length > 0
|
positionLevel: item.profileSalary.length > 0
|
||||||
? item.profileSalary[0].positionLevel
|
? item.profileSalary[0].positionLevel
|
||||||
: null,
|
: null,
|
||||||
posNo: shortName
|
posNo: shortName
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue