no message
This commit is contained in:
parent
603602adbc
commit
b9316ab2cc
1 changed files with 10 additions and 10 deletions
|
|
@ -248,19 +248,19 @@ export class ImportDataController extends Controller {
|
||||||
profileEmp.createdFullName = request.user.name;
|
profileEmp.createdFullName = request.user.name;
|
||||||
profileEmp.lastUpdateUserId = request.user.sub;
|
profileEmp.lastUpdateUserId = request.user.sub;
|
||||||
profileEmp.lastUpdateFullName = request.user.name;
|
profileEmp.lastUpdateFullName = request.user.name;
|
||||||
// profiles.push(profileEmp);
|
profiles.push(profileEmp);
|
||||||
console.log(">>>>>>>>>>>>>>>>>>>" + rowCount);
|
console.log(">>>>>>>>>>>>>>>>>>>" + rowCount);
|
||||||
|
|
||||||
// if (profiles.length === BATCH_SIZE) {
|
if (profiles.length === BATCH_SIZE) {
|
||||||
await this.profileEmpRepo.save(profileEmp);
|
await this.profileEmpRepo.save(profiles);
|
||||||
// profiles = await [];
|
profiles = await [];
|
||||||
// if (global.gc) {
|
if (global.gc) {
|
||||||
// global.gc();
|
global.gc();
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
console.log(rowCount);
|
console.log(rowCount);
|
||||||
// await this.profileEmpRepo.save(profiles);
|
await this.profileEmpRepo.save(profiles);
|
||||||
return new HttpSuccess();
|
return new HttpSuccess();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -338,7 +338,7 @@ export class ImportDataController extends Controller {
|
||||||
profileSalary.lastUpdateFullName = request.user.name;
|
profileSalary.lastUpdateFullName = request.user.name;
|
||||||
profileSalarys.push(profileSalary);
|
profileSalarys.push(profileSalary);
|
||||||
// await this.salaryRepository.save(profileSalary);
|
// await this.salaryRepository.save(profileSalary);
|
||||||
if (profiles.length === BATCH_SIZE) {
|
if (profileSalarys.length === BATCH_SIZE) {
|
||||||
await this.salaryRepository.save(profileSalarys);
|
await this.salaryRepository.save(profileSalarys);
|
||||||
profileSalarys = await [];
|
profileSalarys = await [];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue