no message
This commit is contained in:
parent
e3a4ad4ed7
commit
e0be0fbb82
2 changed files with 16 additions and 1 deletions
|
|
@ -977,7 +977,14 @@ export class ImportDataController extends Controller {
|
||||||
profiles.map(async (_item) => {
|
profiles.map(async (_item) => {
|
||||||
const existingProfile = await this.HR_EDUCATION_EMPRepo.find({
|
const existingProfile = await this.HR_EDUCATION_EMPRepo.find({
|
||||||
where: { CIT: _item.citizenId },
|
where: { CIT: _item.citizenId },
|
||||||
select: ["CIT", "EDUCATION_CODE", "START_EDUCATION_YEAR", "EDUCATION_YEAR", "INSTITUE"],
|
select: [
|
||||||
|
"CIT",
|
||||||
|
"EDUCATION_CODE",
|
||||||
|
"START_EDUCATION_YEAR",
|
||||||
|
"EDUCATION_YEAR",
|
||||||
|
"INSTITUE",
|
||||||
|
"EDUCATION_SEQ",
|
||||||
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
const educationLevel = await this.profileEducationRepo.findOne({
|
const educationLevel = await this.profileEducationRepo.findOne({
|
||||||
|
|
@ -1009,6 +1016,7 @@ export class ImportDataController extends Controller {
|
||||||
education.profileEmployeeId = _item.id;
|
education.profileEmployeeId = _item.id;
|
||||||
education.degree = educationCode ? educationCode.EDUCATION_NAME : "";
|
education.degree = educationCode ? educationCode.EDUCATION_NAME : "";
|
||||||
education.institute = item.INSTITUE;
|
education.institute = item.INSTITUE;
|
||||||
|
education.level = item.EDUCATION_SEQ ? null_ : Number(item.EDUCATION_SEQ);
|
||||||
education.startDate = startDate;
|
education.startDate = startDate;
|
||||||
education.endDate = endDate;
|
education.endDate = endDate;
|
||||||
education.createdUserId = request.user.sub;
|
education.createdUserId = request.user.sub;
|
||||||
|
|
|
||||||
|
|
@ -45,4 +45,11 @@ export class HR_EDUCATION_EMP {
|
||||||
default: null,
|
default: null,
|
||||||
})
|
})
|
||||||
INSTITUE: string;
|
INSTITUE: string;
|
||||||
|
|
||||||
|
@Column({
|
||||||
|
nullable: true,
|
||||||
|
length: 255,
|
||||||
|
default: null,
|
||||||
|
})
|
||||||
|
EDUCATION_SEQ: string;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue