update
This commit is contained in:
parent
69a2cfcddd
commit
87619410af
3 changed files with 37 additions and 0 deletions
|
|
@ -3306,6 +3306,8 @@ export class CommandController extends Controller {
|
|||
positionSalaryAmount?: Double | null;
|
||||
mouthSalaryAmount?: Double | null;
|
||||
positionExecutive: string | null;
|
||||
positionExecutiveField?: string | null;
|
||||
positionArea?: string | null;
|
||||
positionType: string | null;
|
||||
positionLevel: string | null;
|
||||
isLeave: boolean;
|
||||
|
|
@ -3623,6 +3625,8 @@ export class CommandController extends Controller {
|
|||
orgChild3?: string | null;
|
||||
orgChild4?: string | null;
|
||||
positionExecutive?: string | null;
|
||||
positionExecutiveField?: string | null;
|
||||
positionArea?: string | null;
|
||||
commandNo: string | null;
|
||||
commandYear: number | null;
|
||||
posNo: string | null;
|
||||
|
|
|
|||
|
|
@ -9954,6 +9954,35 @@ export class ProfileController extends Controller {
|
|||
.find((x) => x.orgRevisionId == findRevision.id)
|
||||
?.positions?.find((position) => position.positionIsSelected == true)?.posExecutive
|
||||
.posExecutiveName;
|
||||
|
||||
const positionExecutiveField =
|
||||
position == null ||
|
||||
item.current_holders
|
||||
.find((x) => x.orgRevisionId == findRevision.id)
|
||||
?.positions?.find((position) => position.positionIsSelected == true)?.positionExecutiveField ==
|
||||
null ||
|
||||
item.current_holders
|
||||
.find((x) => x.orgRevisionId == findRevision.id)
|
||||
?.positions?.find((position) => position.positionIsSelected == true)?.positionExecutiveField == null
|
||||
? null
|
||||
: item.current_holders
|
||||
.find((x) => x.orgRevisionId == findRevision.id)
|
||||
?.positions?.find((position) => position.positionIsSelected == true)?.positionExecutiveField;
|
||||
|
||||
const positionArea =
|
||||
position == null ||
|
||||
item.current_holders
|
||||
.find((x) => x.orgRevisionId == findRevision.id)
|
||||
?.positions?.find((position) => position.positionIsSelected == true)?.positionArea ==
|
||||
null ||
|
||||
item.current_holders
|
||||
.find((x) => x.orgRevisionId == findRevision.id)
|
||||
?.positions?.find((position) => position.positionIsSelected == true)?.positionArea == null
|
||||
? null
|
||||
: item.current_holders
|
||||
.find((x) => x.orgRevisionId == findRevision.id)
|
||||
?.positions?.find((position) => position.positionIsSelected == true)?.positionArea;
|
||||
|
||||
const posExecutiveId =
|
||||
position == null || position.posExecutive == null ? null : position.posExecutive.id;
|
||||
|
||||
|
|
@ -10071,6 +10100,8 @@ export class ProfileController extends Controller {
|
|||
position: item.position,
|
||||
posExecutiveId: posExecutiveId,
|
||||
posExecutiveName: posExecutive,
|
||||
positionExecutiveField: positionExecutiveField,
|
||||
positionArea: positionArea,
|
||||
node: node,
|
||||
nodeId: nodeId,
|
||||
nodeShortName: nodeShortName,
|
||||
|
|
|
|||
|
|
@ -5553,6 +5553,8 @@ export class ProfileEmployeeController extends Controller {
|
|||
node: node,
|
||||
nodeId: nodeId,
|
||||
nodeShortName: nodeShortName,
|
||||
positionExecutiveField: null,
|
||||
positionArea: null,
|
||||
};
|
||||
});
|
||||
return new HttpSuccess(formattedData);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue