Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6f56a36d
authored
Apr 08, 2024
by
罗志长
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'dev'
parents
30567667
fa770d13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderRealTimeServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderRealTimeServiceImpl.java
View file @
6f56a36d
package
com
.
makeit
.
service
.
platform
.
elder
.
impl
;
package
com
.
makeit
.
service
.
platform
.
elder
.
impl
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
...
@@ -305,8 +306,8 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
...
@@ -305,8 +306,8 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
PlatElderCoordinateVO
vo
=
new
PlatElderCoordinateVO
();
PlatElderCoordinateVO
vo
=
new
PlatElderCoordinateVO
();
JSONObject
result
=
JSON
.
parseObject
(
entity
);
JSONObject
result
=
JSON
.
parseObject
(
entity
);
JSONObject
properties
=
(
JSONObject
)
result
.
get
(
"properties"
);
JSONObject
properties
=
(
JSONObject
)
result
.
get
(
"properties"
);
Object
track
=
properties
.
get
(
"track"
);
JSONArray
tracks
=
properties
.
getJSONArray
(
"track"
);
List
<
Double
>
list
=
track
==
null
?
Lists
.
newArrayList
()
:
(
List
<
Double
>)
track
;
List
<
Double
>
list
=
track
s
==
null
?
Lists
.
newArrayList
()
:
tracks
.
stream
().
mapToDouble
(
a
->
Double
.
parseDouble
(
a
.
toString
())).
boxed
().
collect
(
Collectors
.
toList
())
;
vo
.
setX
(
CollectionUtils
.
isNotEmpty
(
list
)
?
list
.
get
(
1
)
:
null
);
vo
.
setX
(
CollectionUtils
.
isNotEmpty
(
list
)
?
list
.
get
(
1
)
:
null
);
vo
.
setY
(
CollectionUtils
.
isNotEmpty
(
list
)
?
list
.
get
(
2
)
:
null
);
vo
.
setY
(
CollectionUtils
.
isNotEmpty
(
list
)
?
list
.
get
(
2
)
:
null
);
int
personState
=
properties
.
getInteger
(
"personState"
);
int
personState
=
properties
.
getInteger
(
"personState"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment