Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
work_service
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
licc
work_service
Commits
9c1c5984
Commit
9c1c5984
authored
Jan 30, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化导出
parent
e5de8ed3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
StatisticsController.java
...energy/web/admin/controller/app/StatisticsController.java
+1
-1
No files found.
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/StatisticsController.java
View file @
9c1c5984
...
@@ -91,7 +91,7 @@ public class StatisticsController extends BaseController {
...
@@ -91,7 +91,7 @@ public class StatisticsController extends BaseController {
// 获取excel中的第2行第2列中的部门名称
// 获取excel中的第2行第2列中的部门名称
String
deptName
=
sheets
.
getSheet
(
"Sheet1"
).
getRow
(
1
).
getCell
(
1
).
getStringCellValue
();
String
deptName
=
sheets
.
getSheet
(
"Sheet1"
).
getRow
(
1
).
getCell
(
1
).
getStringCellValue
();
// 文件名
// 文件名
String
fileName
=
deptName
+
"-"
+
param
.
getYear
()
+
"
-"
+
param
.
getMonth
()
;
String
fileName
=
deptName
+
"-"
+
param
.
getYear
()
+
"
年"
+
param
.
getMonth
()
+
"月工时汇总"
;
//响应类型为application/octet- stream情况下使用了这个头信息的话,那就意味着不想直接显示内容
//响应类型为application/octet- stream情况下使用了这个头信息的话,那就意味着不想直接显示内容
response
.
setContentType
(
MediaType
.
APPLICATION_OCTET_STREAM_VALUE
);
response
.
setContentType
(
MediaType
.
APPLICATION_OCTET_STREAM_VALUE
);
//attachment为以附件方式下载
//attachment为以附件方式下载
...
...
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