Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
fd8ba571
Commit
fd8ba571
authored
Jul 12, 2022
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:修改批量导入
parent
a06e9b89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
DocLibraryService.java
...in/amos/knowledgebase/face/service/DocLibraryService.java
+5
-5
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-knowledgebase-biz/src/main/java/com/yeejoin/amos/knowledgebase/face/service/DocLibraryService.java
View file @
fd8ba571
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment