Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
Overview
Overview
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
常超
map-parent
Commits
511cfff5
Commit
511cfff5
authored
Nov 09, 2022
by
宋珺琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务管理新增excel上传修改bug
parent
edaa7b34
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/service_base/src/main/java/com/founder/servicebase/controller/SkServiceController.java
+2
-2
No files found.
common/service_base/src/main/java/com/founder/servicebase/controller/SkServiceController.java
View file @
511cfff5
...
@@ -99,9 +99,9 @@ public class SkServiceController extends ApiController {
...
@@ -99,9 +99,9 @@ public class SkServiceController extends ApiController {
String
postfix
=
filename
.
substring
(
filename
.
lastIndexOf
(
"."
)
+
1
);
String
postfix
=
filename
.
substring
(
filename
.
lastIndexOf
(
"."
)
+
1
);
//根据Excel文件后缀读取数据
//根据Excel文件后缀读取数据
if
(
postfix
.
equals
(
"xls"
))
{
if
(
postfix
.
equals
(
"xls"
))
{
Map
xlsExcelMap
=
ExcelUtil
.
readXLSExcel
(
file
.
getInputStream
(),
SkService
.
class
,
abandonFields
);
Map
xlsExcelMap
=
ExcelUtil
.
readXLS
X
Excel
(
file
.
getInputStream
(),
SkService
.
class
,
abandonFields
);
resultList
=
(
List
)
xlsExcelMap
.
get
(
"dataList"
);
resultList
=
(
List
)
xlsExcelMap
.
get
(
"dataList"
);
}
else
{
}
else
if
(
postfix
.
equals
(
"xlsx"
))
{
Map
xlsxExcelMap
=
ExcelUtil
.
readXLSXExcel
(
file
.
getInputStream
(),
SkService
.
class
,
abandonFields
);
Map
xlsxExcelMap
=
ExcelUtil
.
readXLSXExcel
(
file
.
getInputStream
(),
SkService
.
class
,
abandonFields
);
resultList
=
(
List
)
xlsxExcelMap
.
get
(
"dataList"
);
resultList
=
(
List
)
xlsxExcelMap
.
get
(
"dataList"
);
}
}
...
...
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