Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
1a9caf7b
Commit
1a9caf7b
authored
Nov 22, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车辆信息统计
parent
2eb539bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
BranchCompanyVehicleCountController.java
...hicle/rest/admin/BranchCompanyVehicleCountController.java
+5
-1
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/admin/BranchCompanyVehicleCountController.java
View file @
1a9caf7b
...
@@ -45,12 +45,16 @@ public class BranchCompanyVehicleCountController extends BaseController<BranchCo
...
@@ -45,12 +45,16 @@ public class BranchCompanyVehicleCountController extends BaseController<BranchCo
writer
.
addHeaderAlias
(
"weekEndDate"
,
"结束日期"
);
writer
.
addHeaderAlias
(
"weekEndDate"
,
"结束日期"
);
writer
.
addHeaderAlias
(
"countDate"
,
"日期"
);
writer
.
addHeaderAlias
(
"countDate"
,
"日期"
);
writer
.
addHeaderAlias
(
"vehicleNum"
,
"数量"
);
writer
.
addHeaderAlias
(
"vehicleNum"
,
"数量"
);
writer
.
setColumnWidth
(
7
,
17
);
writer
.
setColumnWidth
(
5
,
17
);
writer
.
setColumnWidth
(
6
,
17
);
writer
.
setColumnWidth
(
1
,
17
);
// 一次性写出内容,使用默认样式,强制输出标题
// 一次性写出内容,使用默认样式,强制输出标题
writer
.
write
(
pageDataVO
.
getData
(),
true
);
writer
.
write
(
pageDataVO
.
getData
(),
true
);
//response为HttpServletResponse对象
//response为HttpServletResponse对象
response
.
setContentType
(
"application/vnd.ms-excel;charset=utf-8"
);
response
.
setContentType
(
"application/vnd.ms-excel;charset=utf-8"
);
//test.xls是弹出下载对话框的文件名,不能为中文,中文请自行编码
//test.xls是弹出下载对话框的文件名,不能为中文,中文请自行编码
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename=
clxx
.xlsx"
);
response
.
setHeader
(
"Content-Disposition"
,
"attachment;filename=
vehicleInfo
.xlsx"
);
//out为OutputStream,需要写出到的目标流
//out为OutputStream,需要写出到的目标流
ServletOutputStream
out
=
response
.
getOutputStream
();
ServletOutputStream
out
=
response
.
getOutputStream
();
writer
.
flush
(
out
,
true
);
writer
.
flush
(
out
,
true
);
...
...
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