change profile.salary

This commit is contained in:
Bright 2024-11-15 16:57:20 +07:00
parent 376b50f729
commit 5bc6101e12
3 changed files with 4 additions and 5 deletions

View file

@ -4569,8 +4569,7 @@ export class ProfileController extends Controller {
node: null,
nodeId: null,
type: profile.employeeClass,
salary:
profile && profile.profileSalary.length > 0 ? profile.profileSalary[0].amount : null,
salary: profile.amount,
};
if (_profile.child4Id != null) {
_profile.node = 4;

View file

@ -1970,7 +1970,7 @@ export class ProfileEmployeeController extends Controller {
child4ShortName: child4 == null ? null : child4.orgChild4ShortName,
node: null,
nodeId: null,
salary: profile && profile.profileSalary.length > 0 ? profile.profileSalary[0].amount : null,
salary: profile.amount,
};
return new HttpSuccess(_profile);
}
@ -3970,7 +3970,7 @@ export class ProfileEmployeeController extends Controller {
node: null,
nodeId: null,
posNo: shortName,
salary: profile && profile.profileSalary.length > 0 ? profile.profileSalary[0].amount : null,
salary: profile.amount,
education:
profile && profile.profileEducations.length > 0
? `${profile.profileEducations[0].degree ?? ""}/${profile.profileEducations[0].field ?? ""}`

View file

@ -1861,7 +1861,7 @@ export class ProfileEmployeeTempController extends Controller {
? null
: profile.current_holders.find((x) => x.orgRevisionId == orgRevisionPublish.id)?.orgChild4
.orgChild4Name,
salary: profile && profile.profileSalary.length > 0 ? profile.profileSalary[0].amount : null,
salary: profile.amount,
};
return new HttpSuccess(_profile);
}