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 ccaff94f
authored
Jun 11, 2024
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
方法重命名
1 parent
e272a625
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
src/main/java/cn/com/glsx/admin/modules/mapper/VehicleDeviceMapper.java
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/mapper/VehicleDeviceMapper.java
View file @
ccaff94
...
...
@@ -140,7 +140,7 @@ public interface VehicleDeviceMapper extends CommonBaseMapper<VehicleDevice> {
* @param vehicleId
* @return
*/
String
getEarliest
Install
DeviceSn
(
@Param
(
"vehicleId"
)
Long
vehicleId
);
String
getEarliest
Wire
DeviceSn
(
@Param
(
"vehicleId"
)
Long
vehicleId
);
/**
* 根据userId列表查询所有车辆最早绑定的有线设备的sn码列表
...
...
src/main/java/cn/com/glsx/admin/modules/service/RiskAssessmentService.java
View file @
ccaff94
...
...
@@ -792,7 +792,7 @@ public class RiskAssessmentService {
VehicleUsageAnalysisVO
analysisVO
=
new
VehicleUsageAnalysisVO
();
//每日平均里程数
String
sn
=
vehicleDeviceMapper
.
getEarliest
Install
DeviceSn
(
vehicleId
);
String
sn
=
vehicleDeviceMapper
.
getEarliest
Wire
DeviceSn
(
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
();
...
...
src/main/resources/mapper/VehicleDeviceMapper.xml
View file @
ccaff94
...
...
@@ -352,7 +352,7 @@
and tvd.del_flag = 0
order by tvd.wire_type desc, tvd.created_date
</select>
<select
id=
"getEarliest
Install
DeviceSn"
resultType=
"java.lang.String"
>
<select
id=
"getEarliest
Wire
DeviceSn"
resultType=
"java.lang.String"
>
select tvd.sn
from t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.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