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 f56dfe16
authored
Oct 27, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新E盾 1.30 版本开发 修改日里程统计 小数点准确度问题
1 parent
46e113b5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/main/resources/mapper/ElectricOilMileageMapper.xml
src/main/resources/mapper/TrialMileageMapper.xml
src/main/resources/mapper/ElectricOilMileageMapper.xml
View file @
f56dfe1
...
...
@@ -64,7 +64,7 @@
<select
id=
"getStatisticalData"
resultType=
"cn.com.glsx.admin.modules.model.export.OilReportExport"
>
select
tv.vin,
sum(teom.oil)/1000
as oilCnt,
format(sum(teom.oil)/1000,3)
as oilCnt,
left(teom.begin_time,7) as statDate,
day(teom.begin_time) as dayCount
from t_electric_oil_mileage teom
...
...
src/main/resources/mapper/TrialMileageMapper.xml
View file @
f56dfe1
...
...
@@ -59,7 +59,7 @@
<select
id=
"getStatisticalData"
resultType=
"cn.com.glsx.admin.modules.model.export.MileageReportExport"
>
select
count(1) as totalTripsNum,
sum(total_mileage)/1000
as totalMileage
format(sum(tefd.total_mileage)/1000,3)
as totalMileage
from t_electric_fence_drive tefd
left join t_vehicle_device tvd on tvd.id = tefd.vd_id
left join t_vehicle tv on tv.id = tvd.vehicle_id
...
...
@@ -88,7 +88,7 @@
tefd.journey_time mileageStartTime ,
tefd.journey_end_time mileageEndTime ,
TIMESTAMPDIFF(second ,tefd.journey_time,tefd.journey_end_time) drivingTimeNum,
tefd.total_mileage/1000
drivingMileage
format(tefd.total_mileage/1000,3)
drivingMileage
from t_electric_fence_drive tefd
left join t_vehicle_device tvd on tvd.id = tefd.vd_id
left join t_vehicle tv on tv.id = tvd.vehicle_id
...
...
@@ -113,7 +113,7 @@
select
tefd.sn ,
tv.vin ,
sum(total_mileage)/1000
drivingMileage ,
format(sum(tefd.total_mileage)/1000,3) as
drivingMileage ,
left(tefd.journey_time,10) as mileageTime
from t_electric_fence_drive tefd
left join t_vehicle_device tvd on tvd.id = tefd.vd_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