Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ddeae7cf
authored
Apr 16, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
车辆管理-导出excel文件名修改
1 parent
3ddb6232
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/main/java/cn/com/glsx/admin/modules/controller/VehicleController.java
src/main/java/cn/com/glsx/admin/modules/controller/WorkOrderController.java
src/main/java/cn/com/glsx/admin/modules/controller/VehicleController.java
View file @
ddeae7c
...
...
@@ -146,7 +146,7 @@ public class VehicleController {
@GetMapping
(
"/drivevehicle/export"
)
public
void
exportDriveVehicle
(
VehicleManageSearch
search
)
throws
Exception
{
List
<
TrialDriveVehicleExport
>
list
=
vehicleService
.
exportDriveVehicle
(
search
);
String
fileName
=
"试驾车辆_"
+
DateUtils
.
formatSerial
(
new
Date
());
String
fileName
=
"试驾车辆
列表
_"
+
DateUtils
.
formatSerial
(
new
Date
());
String
sheetName
=
"Sheet1"
;
EasyExcelUtils
.
writeExcel
(
response
,
list
,
fileName
,
sheetName
,
TrialDriveVehicleExport
.
class
);
}
...
...
@@ -312,7 +312,7 @@ public class VehicleController {
@GetMapping
(
"/vehicleinfo/export"
)
public
void
exportVehicleInfo
(
VehicleInfoSearch
search
)
throws
Exception
{
List
<
VehicleInfoExport
>
vehicleInfoList
=
vehicleService
.
exportVehicleInfo
(
search
);
String
fileName
=
"车辆
信息列表_"
+
DateUtils
.
format
(
new
Date
(),
"yyyy-MM-dd"
);
String
fileName
=
"车辆
列表_"
+
DateUtils
.
formatSerial
(
new
Date
()
);
String
sheetName
=
"Sheet1"
;
EasyExcelUtils
.
writeExcel
(
response
,
vehicleInfoList
,
fileName
,
sheetName
,
VehicleInfoExport
.
class
);
}
...
...
src/main/java/cn/com/glsx/admin/modules/controller/WorkOrderController.java
View file @
ddeae7c
...
...
@@ -61,7 +61,7 @@ public class WorkOrderController {
@GetMapping
(
value
=
"/export"
)
public
void
export
(
HttpServletResponse
response
,
WorkOrderSearch
search
)
throws
Exception
{
List
<
WorkOrderExport
>
list
=
workOrderService
.
export
(
search
);
EasyExcelUtils
.
writeExcel
(
response
,
list
,
"工单_"
+
DateUtils
.
formatSerial
(
new
Date
()),
"Sheet1"
,
WorkOrderExport
.
class
);
EasyExcelUtils
.
writeExcel
(
response
,
list
,
"工单
列表
_"
+
DateUtils
.
formatSerial
(
new
Date
()),
"Sheet1"
,
WorkOrderExport
.
class
);
}
@ApiOperation
(
value
=
"工单照片导出"
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment