add field commandDate & education
This commit is contained in:
parent
fb40df8a2a
commit
6d13f7b598
4 changed files with 30 additions and 7 deletions
|
|
@ -3416,7 +3416,12 @@ export class ProfileEmployeeTempController extends Controller {
|
|||
// await new permission().PermissionGet(req, "SYS_REGISTRY_TEMP");//ไม่แน่ใจTEMPปิดไว้ก่อน
|
||||
const profile = await this.profileRepo.findOne({
|
||||
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) {
|
||||
throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลบุคคลนี้ในระบบ");
|
||||
|
|
@ -3536,6 +3541,9 @@ export class ProfileEmployeeTempController extends Controller {
|
|||
node: null,
|
||||
nodeId: null,
|
||||
posNo: shortName,
|
||||
education: profile && profile.profileEducations.length > 0
|
||||
? `${profile.profileEducations[0].degree ?? ""}-${profile.profileEducations[0].field ?? ""}`
|
||||
: "-"
|
||||
};
|
||||
|
||||
if (_profile.child4Id != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue