Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-devicemonitor
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 3bff1ffb
authored
Jan 09, 2024
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.29.0版本 H5页面查询页面添加设备同步逻辑
1 parent
b0baae73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/cn/com/glsx/devicemonitor/modules/service/impl/MonitorServiceImpl.java
src/main/java/cn/com/glsx/devicemonitor/modules/service/impl/MonitorServiceImpl.java
View file @
3bff1ff
...
@@ -362,11 +362,11 @@ public class MonitorServiceImpl implements MonitorService {
...
@@ -362,11 +362,11 @@ public class MonitorServiceImpl implements MonitorService {
// 获取设备类型
// 获取设备类型
Integer
dateDiff
=
-
4
;
Integer
dateDiff
=
-
4
;
Device
device
=
deviceService
.
get
BySn
(
sn
);
Device
device
=
deviceService
.
get
DeviceOrRemote
(
sn
,
Boolean
.
TRUE
);
if
(
Objects
.
nonNull
(
device
)
&&
SourceTypeEnum
.
SOURCE
.
getType
().
equals
(
device
.
getSource
()))
{
if
(
Objects
.
nonNull
(
device
)
&&
SourceTypeEnum
.
SOURCE
.
getType
().
equals
(
device
.
getSource
()))
{
dateDiff
=
-
6
;
dateDiff
=
-
6
;
}
}
if
(
Objects
.
nonNull
(
gpsLocation
))
{
if
(
Objects
.
nonNull
(
gpsLocation
))
{
// 获取最后一个GPS位置点的时间
// 获取最后一个GPS位置点的时间
String
gpsTime
=
gpsLocation
.
getDateTime
();
String
gpsTime
=
gpsLocation
.
getDateTime
();
...
...
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