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.lastUpdateUserId = request.user.sub;
|
||||
profileEmp.lastUpdateFullName = request.user.name;
|
||||
// profiles.push(profileEmp);
|
||||
profiles.push(profileEmp);
|
||||
console.log(">>>>>>>>>>>>>>>>>>>" + rowCount);
|
||||
|
||||
// if (profiles.length === BATCH_SIZE) {
|
||||
await this.profileEmpRepo.save(profileEmp);
|
||||
// profiles = await [];
|
||||
// if (global.gc) {
|
||||
// global.gc();
|
||||
// }
|
||||
// }
|
||||
if (profiles.length === BATCH_SIZE) {
|
||||
await this.profileEmpRepo.save(profiles);
|
||||
profiles = await [];
|
||||
if (global.gc) {
|
||||
global.gc();
|
||||
}
|
||||
}
|
||||
}
|
||||
console.log(rowCount);
|
||||
// await this.profileEmpRepo.save(profiles);
|
||||
await this.profileEmpRepo.save(profiles);
|
||||
return new HttpSuccess();
|
||||
}
|
||||
|
||||
|
|
@ -338,7 +338,7 @@ export class ImportDataController extends Controller {
|
|||
profileSalary.lastUpdateFullName = request.user.name;
|
||||
profileSalarys.push(profileSalary);
|
||||
// await this.salaryRepository.save(profileSalary);
|
||||
if (profiles.length === BATCH_SIZE) {
|
||||
if (profileSalarys.length === BATCH_SIZE) {
|
||||
await this.salaryRepository.save(profileSalarys);
|
||||
profileSalarys = await [];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue