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 fb8231f9
authored
Sep 13, 2023
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.23.0 添加设备定位和警情查询接口 优化无效定位
1 parent
e19b81c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 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 @
fb8231f
...
...
@@ -347,7 +347,10 @@ public class MonitorServiceImpl implements MonitorService {
// 根据设备号和类型查询最后一个位置点
DataGpsLocation
gpsLocation
=
hdaoGpsComponent
.
getDeviceLastGpsInfo
(
sn
,
deviceTypeRelationEnum
);
if
(
Objects
.
nonNull
(
gpsLocation
))
{
deviceInformationDTO
.
setLastOneGPSRecord
(
buildGpsLocationDTO
(
gpsLocation
));
// 判断如果经纬度为无效值,则不设置值
if
(
Float
.
parseFloat
(
gpsLocation
.
getLng
())
!=
0.0
||
Float
.
parseFloat
(
gpsLocation
.
getLat
())
!=
0.0
)
{
deviceInformationDTO
.
setLastOneGPSRecord
(
buildGpsLocationDTO
(
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