no message

This commit is contained in:
kittapath 2025-02-17 22:34:41 +07:00
parent e3a4ad4ed7
commit e0be0fbb82
2 changed files with 16 additions and 1 deletions

View file

@ -977,7 +977,14 @@ export class ImportDataController extends Controller {
profiles.map(async (_item) => {
const existingProfile = await this.HR_EDUCATION_EMPRepo.find({
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({
@ -1009,6 +1016,7 @@ export class ImportDataController extends Controller {
education.profileEmployeeId = _item.id;
education.degree = educationCode ? educationCode.EDUCATION_NAME : "";
education.institute = item.INSTITUE;
education.level = item.EDUCATION_SEQ ? null_ : Number(item.EDUCATION_SEQ);
education.startDate = startDate;
education.endDate = endDate;
education.createdUserId = request.user.sub;

View file

@ -45,4 +45,11 @@ export class HR_EDUCATION_EMP {
default: null,
})
INSTITUE: string;
@Column({
nullable: true,
length: 255,
default: null,
})
EDUCATION_SEQ: string;
}