Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
station
YeeAmosFireAutoSysRoot
Commits
78b6507f
Commit
78b6507f
authored
Jun 05, 2020
by
maoying
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_upgrade' of 172.16.10.76:station/YeeAmosFireAutoSysRoot into upgrade
parents
373902f8
054d6c86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
RegionTreeResponse.java
...oin/amos/fas/core/common/response/RegionTreeResponse.java
+10
-2
No files found.
YeeAmosFireAutoSysCommon/src/main/java/com/yeejoin/amos/fas/core/common/response/RegionTreeResponse.java
View file @
78b6507f
...
@@ -5,7 +5,9 @@ import com.alibaba.fastjson.JSON;
...
@@ -5,7 +5,9 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
public
class
RegionTreeResponse
{
public
class
RegionTreeResponse
{
...
@@ -19,7 +21,7 @@ public class RegionTreeResponse {
...
@@ -19,7 +21,7 @@ public class RegionTreeResponse {
private
Boolean
isBind
;
private
Boolean
isBind
;
private
String
type
;
private
String
type
;
private
Boolean
isRegion
;
private
Boolean
isRegion
;
private
JSONArray
position3d
;
private
JSONArray
position3d
=
new
JSONArray
();
;
private
String
routePath
;
private
String
routePath
;
private
String
level
;
private
String
level
;
private
String
levelStr
;
private
String
levelStr
;
...
@@ -30,7 +32,13 @@ public class RegionTreeResponse {
...
@@ -30,7 +32,13 @@ public class RegionTreeResponse {
}
}
public
void
setPosition3d
(
String
position3d
)
{
public
void
setPosition3d
(
String
position3d
)
{
this
.
position3d
=
StringUtils
.
isEmpty
(
position3d
)
?
new
JSONArray
()
:
JSON
.
parseArray
(
position3d
);
JSONArray
jsonArray
=
new
JSONArray
();
if
(!
StringUtils
.
isEmpty
(
position3d
)){
String
[]
arryStr
=
position3d
.
split
(
","
);
List
<
Double
>
collect
=
Arrays
.
stream
(
arryStr
).
map
(
Double:
:
parseDouble
).
collect
(
Collectors
.
toList
());
jsonArray
.
addAll
(
collect
);
}
this
.
position3d
=
jsonArray
;
}
}
public
Long
getId
()
{
public
Long
getId
()
{
...
...
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