Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
69f01997
Commit
69f01997
authored
Apr 22, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
36dfd840
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
TaxDocumentController.java
...va/pwc/taxtech/atms/controller/TaxDocumentController.java
+3
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/TaxDocumentController.java
View file @
69f01997
...
...
@@ -413,12 +413,13 @@ public class TaxDocumentController {
try
{
is
=
httpFileService
.
getUserTemplate
(
url
);
tWorkbook
=
WorkbookFactory
.
create
(
is
);
for
(
int
i
=
0
;
i
<
tWorkbook
.
getNumberOfSheets
();
i
++){
for
(
int
i
=
1
;
i
<
tWorkbook
.
getNumberOfSheets
();
i
++){
POIUtil
.
cloneSheet
(
tWorkbook
.
getSheetAt
(
i
),
workbook
.
createSheet
(
tWorkbook
.
getSheetAt
(
i
).
getSheetName
()));
}
response
.
setContentType
(
"multipart/form-data"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;fileName="
+
new
String
(
"test.xlsx"
.
getBytes
(
"GB2312"
),
"ISO-8859-1"
));
ouputStream
=
response
.
getOutputStream
();
tW
orkbook
.
write
(
ouputStream
);
w
orkbook
.
write
(
ouputStream
);
}
catch
(
Exception
e
){
e
.
printStackTrace
();
}
finally
{
...
...
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