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 9ddec2cb
authored
May 20, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:设备激活时间作为截止目前起始时间
1 parent
b1255bca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
src/main/java/cn/com/glsx/admin/modules/service/VehicleMonitorService.java
src/main/java/cn/com/glsx/admin/modules/service/VehicleMonitorService.java
View file @
9ddec2c
...
@@ -475,10 +475,9 @@ public class VehicleMonitorService {
...
@@ -475,10 +475,9 @@ public class VehicleMonitorService {
// 判断查询类型
// 判断查询类型
//2为无源设备查询基站;1为有源设备查询GPS
//2为无源设备查询基站;1为有源设备查询GPS
Device
device
=
deviceService
.
getDeviceBySn
(
search
.
getSn
());
Device
device
=
deviceService
.
getDeviceBySn
(
search
.
getSn
());
VehicleDevice
vehicleDevice
=
vehicleDeviceService
.
getByBindSn
(
search
.
getSn
());
Date
device
CreateDate
=
Optional
.
ofNullable
(
vehicleD
evice
)
Date
device
ActivateTime
=
Optional
.
ofNullable
(
d
evice
)
.
map
(
VehicleDevice:
:
getCreatedDat
e
)
.
map
(
Device:
:
getActivateTim
e
)
.
orElse
(
new
Date
());
.
orElse
(
new
Date
());
int
lacType
;
int
lacType
;
if
(
Objects
.
isNull
(
device
)
||
Objects
.
equals
(
device
.
getSource
(),
1
))
{
if
(
Objects
.
isNull
(
device
)
||
Objects
.
equals
(
device
.
getSource
(),
1
))
{
...
@@ -487,7 +486,7 @@ public class VehicleMonitorService {
...
@@ -487,7 +486,7 @@ public class VehicleMonitorService {
lacType
=
2
;
lacType
=
2
;
}
}
//转换前端时间
//转换前端时间
ImmutablePair
<
String
,
String
>
timeImmutablePair
=
convertTime
(
search
,
device
CreateDat
e
);
ImmutablePair
<
String
,
String
>
timeImmutablePair
=
convertTime
(
search
,
device
ActivateTim
e
);
//ICE接口查询常驻地列表
//ICE接口查询常驻地列表
return
VehicleMonitorConvert
.
buildResidentRequest
(
search
,
timeImmutablePair
.
getLeft
(),
timeImmutablePair
.
getRight
(),
lacType
);
return
VehicleMonitorConvert
.
buildResidentRequest
(
search
,
timeImmutablePair
.
getLeft
(),
timeImmutablePair
.
getRight
(),
lacType
);
...
...
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