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 9d0db017
authored
Mar 15, 2022
by
王欣伟
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去掉速度的判断,只校验状态
1 parent
55638bf0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/cn/com/glsx/devicemonitor/modules/utils/DeviceUtils.java
src/main/java/cn/com/glsx/devicemonitor/modules/utils/DeviceUtils.java
View file @
9d0db01
...
@@ -91,7 +91,8 @@ public class DeviceUtils {
...
@@ -91,7 +91,8 @@ public class DeviceUtils {
}
}
//否则 在6分钟内并且有速度 则为行驶中
//否则 在6分钟内并且有速度 则为行驶中
if
(
deviceLogin
.
getStayStatus
()
!=
null
&&
deviceLogin
.
getStayStatus
()
==
2
&&
deviceLogin
.
getSpeed
()
!=
null
&&
deviceLogin
.
getSpeed
()
>
0
)
{
// 取消速度限制,速度的判定交给大数据计算
if
(
deviceLogin
.
getStayStatus
()
!=
null
&&
deviceLogin
.
getStayStatus
()
==
2
)
{
//行驶状态
//行驶状态
deviceStatus
.
setStatus
(
ConstantsDevice
.
DEVICE_STATUS_DRIVING
);
deviceStatus
.
setStatus
(
ConstantsDevice
.
DEVICE_STATUS_DRIVING
);
return
;
return
;
...
...
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