add field commandDate & education
This commit is contained in:
parent
fb40df8a2a
commit
6d13f7b598
4 changed files with 30 additions and 7 deletions
|
|
@ -1324,6 +1324,7 @@ export class CommandController extends Controller {
|
||||||
RemarkHorizontal: x.remarkHorizontal,
|
RemarkHorizontal: x.remarkHorizontal,
|
||||||
RemarkVertical: x.remarkVertical,
|
RemarkVertical: x.remarkVertical,
|
||||||
CommandYear: command.commandYear,
|
CommandYear: command.commandYear,
|
||||||
|
CommandExcecuteDate: command.commandExcecuteDate
|
||||||
})),
|
})),
|
||||||
})
|
})
|
||||||
.then(async (res) => {
|
.then(async (res) => {
|
||||||
|
|
|
||||||
|
|
@ -5278,11 +5278,15 @@ export class ProfileController extends Controller {
|
||||||
"current_holders",
|
"current_holders",
|
||||||
"current_holders.orgRoot",
|
"current_holders.orgRoot",
|
||||||
"profileSalary",
|
"profileSalary",
|
||||||
|
"profileEducations"
|
||||||
],
|
],
|
||||||
order: {
|
order: {
|
||||||
profileSalary: {
|
// profileSalary: {
|
||||||
order: "DESC",
|
// order: "DESC",
|
||||||
},
|
// },
|
||||||
|
profileEducations: {
|
||||||
|
createdAt: "DESC"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (!profile) {
|
if (!profile) {
|
||||||
|
|
@ -5461,6 +5465,9 @@ export class ProfileController extends Controller {
|
||||||
isPosmasterAct: data.length > 0,
|
isPosmasterAct: data.length > 0,
|
||||||
posmasterAct: data,
|
posmasterAct: data,
|
||||||
salary: profile ? profile.amount : null,
|
salary: profile ? profile.amount : null,
|
||||||
|
education: profile && profile.profileEducations.length > 0
|
||||||
|
? `${profile.profileEducations[0].degree ?? ""}-${profile.profileEducations[0].field ?? ""}`
|
||||||
|
: "-"
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_profile.child4Id != null) {
|
if (_profile.child4Id != null) {
|
||||||
|
|
|
||||||
|
|
@ -3833,11 +3833,15 @@ export class ProfileEmployeeController extends Controller {
|
||||||
"current_holders",
|
"current_holders",
|
||||||
"current_holders.orgRoot",
|
"current_holders.orgRoot",
|
||||||
"profileSalary",
|
"profileSalary",
|
||||||
|
"profileEducations"
|
||||||
],
|
],
|
||||||
order: {
|
order: {
|
||||||
profileSalary: {
|
// profileSalary: {
|
||||||
order: "DESC",
|
// order: "DESC",
|
||||||
},
|
// },
|
||||||
|
profileEducations: {
|
||||||
|
createdAt: "DESC"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (!profile) {
|
if (!profile) {
|
||||||
|
|
@ -3961,6 +3965,9 @@ export class ProfileEmployeeController extends Controller {
|
||||||
posNo: shortName,
|
posNo: shortName,
|
||||||
salary:
|
salary:
|
||||||
profile && profile.profileSalary.length > 0 ? profile.profileSalary[0].amount : null,
|
profile && profile.profileSalary.length > 0 ? profile.profileSalary[0].amount : null,
|
||||||
|
education: profile && profile.profileEducations.length > 0
|
||||||
|
? `${profile.profileEducations[0].degree ?? ""}-${profile.profileEducations[0].field ?? ""}`
|
||||||
|
: "-"
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_profile.child4Id != null) {
|
if (_profile.child4Id != null) {
|
||||||
|
|
|
||||||
|
|
@ -3416,7 +3416,12 @@ export class ProfileEmployeeTempController extends Controller {
|
||||||
// await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");//ไม่แน่ใจTEMPปิดไว้ก่อน
|
// await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");//ไม่แน่ใจTEMPปิดไว้ก่อน
|
||||||
const profile = await this.profileRepo.findOne({
|
const profile = await this.profileRepo.findOne({
|
||||||
where: { id: id },
|
where: { id: id },
|
||||||
relations: ["posLevel", "posType", "current_holders", "current_holders.orgRoot"],
|
relations: ["posLevel", "posType", "current_holders", "current_holders.orgRoot", "profileEducations"],
|
||||||
|
order: {
|
||||||
|
profileEducations: {
|
||||||
|
createdAt: "DESC"
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
if (!profile) {
|
if (!profile) {
|
||||||
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลบุคคลนี้ในระบบ");
|
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลบุคคลนี้ในระบบ");
|
||||||
|
|
@ -3536,6 +3541,9 @@ export class ProfileEmployeeTempController extends Controller {
|
||||||
node: null,
|
node: null,
|
||||||
nodeId: null,
|
nodeId: null,
|
||||||
posNo: shortName,
|
posNo: shortName,
|
||||||
|
education: profile && profile.profileEducations.length > 0
|
||||||
|
? `${profile.profileEducations[0].degree ?? ""}-${profile.profileEducations[0].field ?? ""}`
|
||||||
|
: "-"
|
||||||
};
|
};
|
||||||
|
|
||||||
if (_profile.child4Id != null) {
|
if (_profile.child4Id != null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue