Commit fd8ba571 authored by 高建强's avatar 高建强

item:修改批量导入

parent a06e9b89
......@@ -851,14 +851,14 @@ public class DocLibraryService {
tagUnitMap, this.sequence, inputerOrg);
// 逐行解析
while (finishedNum < rowNumber) {
for (int i = 0; i < BATCH_IMPORT_ONCE_NUM && finishedNum < rowNumber; i++, finishedNum++) {
for (int i = 1; i <= BATCH_IMPORT_ONCE_NUM && finishedNum < rowNumber; i++, finishedNum++) {
Row row = sheet.getRow(excelConfigList.get(0).getStartRowIndex() + finishedNum);
excelParser.parseRow(row, directoryMap);
batchInsertDocDataAll(excelParser.getAndFlushDatas());
// if (i % 500 == 0) {
// batchInsertDocDataAll(excelParser.getAndFlushDatas());
// }
if (i % 500 == 0) {
batchInsertDocDataAll(excelParser.getAndFlushDatas());
}
}
batchInsertDocDataAll(excelParser.getAndFlushDatas());
QuoteCountFlushTiming.needFlushTag();
}
return excelParser.getImportResults();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment