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 ed0add48
authored
May 17, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
列表排序和导出文件名修改
1 parent
44cdf0b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
src/main/java/cn/com/glsx/admin/modules/controller/OpereportController.java
src/main/resources/mapper/VehicleDeviceMapper.xml
src/main/java/cn/com/glsx/admin/modules/controller/OpereportController.java
View file @
ed0add4
...
@@ -41,7 +41,7 @@ public class OpereportController extends AbstractController {
...
@@ -41,7 +41,7 @@ public class OpereportController extends AbstractController {
@GetMapping
(
value
=
"/vehicle/export"
)
@GetMapping
(
value
=
"/vehicle/export"
)
public
R
vehicleExport
(
ReportVehicleSearch
search
)
{
public
R
vehicleExport
(
ReportVehicleSearch
search
)
{
List
<
ReportVehicleExport
>
list
=
opereportService
.
vehicleExport
(
search
);
List
<
ReportVehicleExport
>
list
=
opereportService
.
vehicleExport
(
search
);
String
url
=
super
.
uploadExcel
(
list
,
"
车辆列表
_"
+
DateUtils
.
formatSerial
(
new
Date
()),
ReportVehicleExport
.
class
);
String
url
=
super
.
uploadExcel
(
list
,
"
运营统计报表(车辆维度)
_"
+
DateUtils
.
formatSerial
(
new
Date
()),
ReportVehicleExport
.
class
);
return
R
.
ok
().
data
(
url
);
return
R
.
ok
().
data
(
url
);
}
}
...
@@ -56,7 +56,7 @@ public class OpereportController extends AbstractController {
...
@@ -56,7 +56,7 @@ public class OpereportController extends AbstractController {
@GetMapping
(
value
=
"/device/export"
)
@GetMapping
(
value
=
"/device/export"
)
public
R
deviceExport
(
ReportDeviceSearch
search
)
{
public
R
deviceExport
(
ReportDeviceSearch
search
)
{
List
<
ReportDeviceExport
>
list
=
opereportService
.
deviceExport
(
search
);
List
<
ReportDeviceExport
>
list
=
opereportService
.
deviceExport
(
search
);
String
url
=
super
.
uploadExcel
(
list
,
"
设备列表
_"
+
DateUtils
.
formatSerial
(
new
Date
()),
ReportDeviceExport
.
class
);
String
url
=
super
.
uploadExcel
(
list
,
"
运营统计报表(设备维度)
_"
+
DateUtils
.
formatSerial
(
new
Date
()),
ReportDeviceExport
.
class
);
return
R
.
ok
().
data
(
url
);
return
R
.
ok
().
data
(
url
);
}
}
...
...
src/main/resources/mapper/VehicleDeviceMapper.xml
View file @
ed0add4
...
@@ -180,6 +180,7 @@
...
@@ -180,6 +180,7 @@
<select
id=
"searchReportDevice"
resultType=
"cn.com.glsx.admin.modules.model.ReportDeviceDTO"
>
<select
id=
"searchReportDevice"
resultType=
"cn.com.glsx.admin.modules.model.ReportDeviceDTO"
>
select tvd.id,
select tvd.id,
tv.id vehicleId,
tv.id vehicleId,
td.id deviceId,
tv.workorder_id workOrderId,
tv.workorder_id workOrderId,
tw.partner_order_no bizOrderNo,
tw.partner_order_no bizOrderNo,
tvd.sn sns,
tvd.sn sns,
...
@@ -217,12 +218,13 @@
...
@@ -217,12 +218,13 @@
or tw.partner_order_no like '%${term}%'
or tw.partner_order_no like '%${term}%'
)
)
</if>
</if>
order by tv.created_date desc,
vehicleId, tvd.id
order by tv.created_date desc,
deviceId desc
</select>
</select>
<select
id=
"exportReportDevice"
resultType=
"cn.com.glsx.admin.modules.model.export.ReportDeviceExport"
>
<select
id=
"exportReportDevice"
resultType=
"cn.com.glsx.admin.modules.model.export.ReportDeviceExport"
>
select tvd.id,
select tvd.id,
tv.id vehicleId,
tv.id vehicleId,
td.id deviceId,
tv.workorder_id workOrderId,
tv.workorder_id workOrderId,
tw.partner_order_no bizOrderNo,
tw.partner_order_no bizOrderNo,
tvd.sn sns,
tvd.sn sns,
...
@@ -260,7 +262,7 @@
...
@@ -260,7 +262,7 @@
or tw.partner_order_no like '%${term}%'
or tw.partner_order_no like '%${term}%'
)
)
</if>
</if>
order by tv.created_date desc,
vehicleId, tvd.id
order by tv.created_date desc,
deviceId desc
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
\ No newline at end of file
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