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
1
Merge Requests
1
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
333ac78b
Commit
333ac78b
authored
Aug 22, 2025
by
R10
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加载文件异常抛出
parent
5eca5899
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
DocumentLoad.java
src/main/java/cn/com/poc/common/utils/DocumentLoad.java
+3
-2
No files found.
src/main/java/cn/com/poc/common/utils/DocumentLoad.java
View file @
333ac78b
package
cn
.
com
.
poc
.
common
.
utils
;
package
cn
.
com
.
poc
.
common
.
utils
;
import
cn.com.yict.framemax.core.exception.BusinessException
;
import
cn.com.yict.framemax.core.i18n.I18nMessageException
;
import
cn.com.yict.framemax.core.i18n.I18nMessageException
;
import
cn.hutool.core.io.FileUtil
;
import
cn.hutool.core.io.FileUtil
;
import
com.alibaba.excel.EasyExcel
;
import
com.alibaba.excel.EasyExcel
;
...
@@ -192,10 +193,10 @@ public class DocumentLoad {
...
@@ -192,10 +193,10 @@ public class DocumentLoad {
case
"csv"
:
case
"csv"
:
return
excelToMarkdown
(
file
);
return
excelToMarkdown
(
file
);
default
:
default
:
throw
new
I18nMessage
Exception
(
type
+
" format is not yet supported"
);
throw
new
Business
Exception
(
type
+
" format is not yet supported"
);
}
}
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
throw
new
I18nMessage
Exception
(
e
.
getMessage
());
throw
new
Business
Exception
(
e
.
getMessage
());
}
}
}
}
...
...
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