Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
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
poc
poc-api
Commits
fef499ee
Commit
fef499ee
authored
Mar 12, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 文件转换多次异常
parent
8ada8e16
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
KnowledgeServiceImpl.java
...om/poc/knowledge/aggregate/impl/KnowledgeServiceImpl.java
+2
-2
No files found.
src/main/java/cn/com/poc/knowledge/aggregate/impl/KnowledgeServiceImpl.java
View file @
fef499ee
...
@@ -444,13 +444,13 @@ public class KnowledgeServiceImpl implements KnowledgeService {
...
@@ -444,13 +444,13 @@ public class KnowledgeServiceImpl implements KnowledgeService {
Cell
next
=
cellIterator
.
next
();
Cell
next
=
cellIterator
.
next
();
if
(
StringUtils
.
isNotBlank
(
next
.
toString
()))
{
if
(
StringUtils
.
isNotBlank
(
next
.
toString
()))
{
if
(
next
.
toString
().
length
()
>
1000
)
{
// 每格字数不可超1000字
if
(
next
.
toString
().
length
()
>
1000
)
{
// 每格字数不可超1000字
throw
new
I18nMessageException
(
"exception/file.content.more.than.1000"
);
throw
new
I18nMessageException
(
"exception/file.c
ell.c
ontent.more.than.1000"
);
}
}
totalWordCount
+=
next
.
toString
().
length
();
totalWordCount
+=
next
.
toString
().
length
();
}
}
}
}
if
(
totalWordCount
>
3000
)
{
//每行字数不可超3000字
if
(
totalWordCount
>
3000
)
{
//每行字数不可超3000字
throw
new
I18nMessageException
(
"exception/file.content.more.than.3000"
);
throw
new
I18nMessageException
(
"exception/file.
rows.
content.more.than.3000"
);
}
}
}
}
return
true
;
return
true
;
...
...
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