Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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
base_platform_enterprise
gic-store
Commits
4d33187c
Commit
4d33187c
authored
Feb 24, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店标签导入
parent
18386fd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
StoreTagController.java
...java/com/gic/store/web/controller/StoreTagController.java
+4
-3
No files found.
gic-store-web/src/main/java/com/gic/store/web/controller/StoreTagController.java
View file @
4d33187c
...
@@ -101,9 +101,10 @@ public class StoreTagController {
...
@@ -101,9 +101,10 @@ public class StoreTagController {
"attachment; filename="
+
new
String
(
fileName
.
getBytes
(
"gbk"
),
"ISO-8859-1"
));
"attachment; filename="
+
new
String
(
fileName
.
getBytes
(
"gbk"
),
"ISO-8859-1"
));
fo
=
response
.
getOutputStream
();
fo
=
response
.
getOutputStream
();
String
rootPath
=
request
.
getSession
().
getServletContext
().
getRealPath
(
"/"
);
// String rootPath = request.getSession().getServletContext().getRealPath("/");
String
filePath
=
"/excel/store_tag_batch_import.xlsx"
;
// String filePath = "excel/store_tag_batch_import.xlsx";
in
=
new
FileInputStream
(
new
File
(
rootPath
+
filePath
));
// in = new FileInputStream(new File(rootPath + filePath));
in
=
this
.
getClass
().
getClassLoader
().
getResourceAsStream
(
"excel/store_tag_batch_import.xlsx"
);
byte
[]
b
=
new
byte
[
1024
];
byte
[]
b
=
new
byte
[
1024
];
int
len
=
0
;
int
len
=
0
;
while
((
len
=
in
.
read
(
b
))
!=
-
1
)
{
while
((
len
=
in
.
read
(
b
))
!=
-
1
)
{
...
...
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