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 e272a625
authored
Jun 11, 2024
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
用量分析接口bug修复
1 parent
b68edd54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
src/main/java/cn/com/glsx/admin/modules/service/RiskAssessmentService.java
src/main/resources/mapper/VehicleDeviceMapper.xml
src/main/java/cn/com/glsx/admin/modules/service/RiskAssessmentService.java
View file @
e272a62
...
...
@@ -793,6 +793,7 @@ public class RiskAssessmentService {
//每日平均里程数
String
sn
=
vehicleDeviceMapper
.
getEarliestInstallDeviceSn
(
vehicleId
);
log
.
info
(
"sn:{}"
,
sn
);
Example
overviewExample
=
new
Example
.
Builder
(
DeviceJourneyOverview
.
class
).
where
(
WeekendSqls
.<
DeviceJourneyOverview
>
custom
()
.
andEqualTo
(
DeviceJourneyOverview:
:
getSn
,
sn
).
andEqualTo
(
DeviceJourneyOverview:
:
getDelFlag
,
0
)).
build
();
DeviceJourneyOverview
overview
=
deviceJourneyOverviewMapper
.
selectOneByExample
(
overviewExample
);
...
...
src/main/resources/mapper/VehicleDeviceMapper.xml
View file @
e272a62
...
...
@@ -356,7 +356,8 @@
select tvd.sn
from t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
where tv.id = #{vehicleId} and tv.del_flag = 0 and tvd.del_flag = 0 and tvd.bind_status = 1 and tvd.wire_type = 1
left join t_device td on td.sn = tvd.sn
where tv.id = #{vehicleId} and tv.del_flag = 0 and tvd.del_flag = 0 and tvd.bind_status = 1 and td.source = 1
order by tvd.id asc limit 1
</select>
<select
id=
"getVehicleEarliestWireDeviceSnByUserIds"
resultType=
"java.lang.String"
>
...
...
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