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 fd18aa1f
authored
Oct 29, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新E盾 1.30 版本开发 里程详情查询时返回fenceId
1 parent
9e294716
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
src/main/java/cn/com/glsx/admin/modules/model/export/DailyMileageReportExport.java
src/main/resources/mapper/TrialMileageMapper.xml
src/main/java/cn/com/glsx/admin/modules/model/export/DailyMileageReportExport.java
View file @
fd18aa1
...
@@ -36,4 +36,7 @@ public class DailyMileageReportExport {
...
@@ -36,4 +36,7 @@ public class DailyMileageReportExport {
@ExcelProperty
(
value
=
"行驶里程km"
,
index
=
7
)
@ExcelProperty
(
value
=
"行驶里程km"
,
index
=
7
)
private
double
drivingMileage
;
private
double
drivingMileage
;
@ExcelIgnore
private
Integer
fenceId
;
}
}
src/main/resources/mapper/TrialMileageMapper.xml
View file @
fd18aa1
...
@@ -87,8 +87,9 @@
...
@@ -87,8 +87,9 @@
tv.vin ,
tv.vin ,
tefd.journey_time mileageStartTime ,
tefd.journey_time mileageStartTime ,
tefd.journey_end_time mileageEndTime ,
tefd.journey_end_time mileageEndTime ,
TIMESTAMPDIFF(second ,tefd.journey_time,tefd.journey_end_time) drivingTimeNum,
TIMESTAMPDIFF(second ,tefd.journey_time,tefd.journey_end_time) drivingTimeNum ,
format(tefd.total_mileage/1000,3) drivingMileage
format(tefd.total_mileage/1000,3) drivingMileage ,
tefd.fence_id fenceId
from t_electric_fence_drive tefd
from t_electric_fence_drive tefd
left join t_vehicle_device tvd on tvd.id = tefd.vd_id
left join t_vehicle_device tvd on tvd.id = tefd.vd_id
left join t_vehicle tv on tv.id = tvd.vehicle_id
left join t_vehicle tv on tv.id = tvd.vehicle_id
...
...
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