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 d89650e1
authored
Nov 10, 2023
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化警情和定位查询接口
1 parent
6ddb5e5a
Show 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 @
d89650e
...
@@ -361,10 +361,10 @@ public class MonitorServiceImpl implements MonitorService {
...
@@ -361,10 +361,10 @@ public class MonitorServiceImpl implements MonitorService {
log
.
info
(
sw
.
getLastTaskName
()
+
"耗时:"
+
sw
.
getLastTaskTimeMillis
()
+
"ms"
);
log
.
info
(
sw
.
getLastTaskName
()
+
"耗时:"
+
sw
.
getLastTaskTimeMillis
()
+
"ms"
);
// 获取设备类型
// 获取设备类型
Integer
dateDiff
=
-
6
;
Integer
dateDiff
=
-
4
;
Device
device
=
deviceService
.
getBySn
(
sn
);
Device
device
=
deviceService
.
getBySn
(
sn
);
if
(
Objects
.
nonNull
(
device
)
&&
SourceTypeEnum
.
SOURCE
.
getType
().
equals
(
device
.
getSource
()))
{
if
(
Objects
.
nonNull
(
device
)
&&
SourceTypeEnum
.
SOURCE
.
getType
().
equals
(
device
.
getSource
()))
{
dateDiff
=
-
4
;
dateDiff
=
-
6
;
}
}
if
(
Objects
.
nonNull
(
gpsLocation
))
{
if
(
Objects
.
nonNull
(
gpsLocation
))
{
...
...
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