This commit is contained in:
Bright 2024-07-01 16:57:02 +07:00
parent d9f52301d4
commit 54a743532b

View file

@ -3275,12 +3275,12 @@ export class ProfileEmployeeController extends Controller {
null
? null
: profile.current_holders.find((x) => x.orgRevisionId == orgRevisionPublish.id)?.orgChild4;
const position = await this.positionRepository.findOne({
relations: ["posExecutive"],
where: {
posMasterId: posMaster?.id,
},
});
// const position = await this.positionRepository.findOne({
// relations: ["posExecutive"],
// where: {
// posMasterId: posMaster?.id,
// },
// });
const _profile: any = {
profileId: profile.id,
prefix: profile.prefix,
@ -3299,7 +3299,7 @@ export class ProfileEmployeeController extends Controller {
posTypeName: profile.posType == null ? null : profile.posType.posTypeName,
posTypeRank: profile.posType == null ? null : profile.posType.posTypeRank,
posTypeId: profile.posType == null ? null : profile.posType.id,
posExecutiveName: "",
// posExecutiveName: "",
rootId: root == null ? null : root.id,
root: root == null ? null : root.orgRootName,
rootShortName: root == null ? null : root.orgRootShortName,