Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
Overview
Overview
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
常超
map-parent
Commits
b3c5c7e5
Commit
b3c5c7e5
authored
Aug 08, 2022
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
内蒙时空相关接口对接(内蒙)
parent
fc9caf2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
29 deletions
+34
-29
serviceapi/peopleapi/src/main/java/com/founder/peopleapi/service/impl/PeopleServiceImpl.java
+34
-29
No files found.
serviceapi/peopleapi/src/main/java/com/founder/peopleapi/service/impl/PeopleServiceImpl.java
View file @
b3c5c7e5
...
...
@@ -163,49 +163,54 @@ public class PeopleServiceImpl implements PeopleService {
public
List
getXnXxInfo
(
String
objectType
,
String
objectValue
)
{
/*手机信息目录*/
List
childrenList
=
new
ArrayList
();
HttpEntity
<
JSONObject
>
jsonObject
=
restTemplate
.
getForEntity
(
"http://26.3.13.120:8501/nmsj/getMyWxQqZcXxFw?xnhm="
+
objectValue
,
JSONObject
.
class
);
// qq 微信等
/*
HttpEntity<JSONObject> jsonObject = restTemplate.getForEntity("http://26.3.13.120:8501/nmsj/getMyWxQqZcXxFw?xnhm=" + objectValue, JSONObject.class);
if (StringUtils.isNotEmpty(String.valueOf(jsonObject.getBody()))) {
if (jsonObject.getBody().containsKey("data")) {
LinkedHashMap resultJson = (LinkedHashMap) jsonObject.getBody().get("data");//获取返回的数据结果
List<LinkedHashMap> array = (List<LinkedHashMap>) resultJson.get("rows");
for
(
int
i
=
0
;
i
<
array
.
size
();
i
++)
{
LinkedHashMap
object
=
array
.
get
(
i
);
String
bshxx
=
(
String
)
object
.
get
(
"bshxx"
);
String
bshlx
=
(
String
)
object
.
get
(
"bshlx"
);
PeopleInfo
peopleInfo1
=
new
PeopleInfo
();
if
(
"06"
.
equals
(
bshlx
))
{
peopleInfo1
.
setObjectType
(
"06"
);
peopleInfo1
.
setObjectValue
(
bshxx
);
childrenList
.
add
(
peopleInfo1
);
}
else
if
(
"07"
.
equals
(
bshlx
))
{
peopleInfo1
.
setObjectType
(
"07"
);
peopleInfo1
.
setObjectValue
(
bshxx
);
childrenList
.
add
(
peopleInfo1
);
if(null!=array){
for (int i = 0; i < array.size(); i++) {
LinkedHashMap object = array.get(i);
String bshxx = (String) object.get("bshxx");
String bshlx = (String) object.get("bshlx");
PeopleInfo peopleInfo1 = new PeopleInfo();
if ("06".equals(bshlx)) {
peopleInfo1.setObjectType("06");
peopleInfo1.setObjectValue(bshxx);
childrenList.add(peopleInfo1);
} else if ("07".equals(bshlx)) {
peopleInfo1.setObjectType("07");
peopleInfo1.setObjectValue(bshxx);
childrenList.add(peopleInfo1);
}
}
}
}
}
}
*/
// 四码信息
HttpEntity
<
JSONObject
>
jsonObject2
=
restTemplate
.
getForEntity
(
"http://26.3.13.120:8501/nmsj/getSjXx?sjhm="
+
objectValue
,
JSONObject
.
class
);
if
(
StringUtils
.
isNotEmpty
(
String
.
valueOf
(
jsonObject2
.
getBody
())))
{
if
(
jsonObject2
.
getBody
().
containsKey
(
"data"
))
{
JSONObject
resultJson
=
jsonObject2
.
getBody
().
getJSONObject
(
"data"
);
//获取返回的数据结果
JSONArray
array
=
resultJson
.
getJSONObject
(
"rows"
).
getJSONArray
(
"bshxx"
);
System
.
out
.
println
(
array
);
for
(
int
i
=
0
;
i
<
resultJson
.
size
();
i
++)
{
JSONObject
object
=
array
.
getJSONObject
(
i
);
String
bshxx
=
(
String
)
object
.
get
(
"bshxx"
);
String
bshlx
=
(
String
)
object
.
get
(
"bshlx"
);
PeopleInfo
peopleInfo1
=
new
PeopleInfo
();
if
(
"04"
.
equals
(
bshlx
))
{
peopleInfo1
.
setObjectType
(
"08"
);
peopleInfo1
.
setObjectValue
(
bshxx
);
childrenList
.
add
(
peopleInfo1
);
}
else
if
(
"05"
.
equals
(
bshlx
))
{
peopleInfo1
.
setObjectType
(
"05"
);
peopleInfo1
.
setObjectValue
(
bshxx
);
childrenList
.
add
(
peopleInfo1
);
if
(
array
.
size
()>
0
){
for
(
int
i
=
0
;
i
<
resultJson
.
size
();
i
++)
{
JSONObject
object
=
array
.
getJSONObject
(
i
);
String
bshxx
=
(
String
)
object
.
get
(
"bshxx"
);
String
bshlx
=
(
String
)
object
.
get
(
"bshlx"
);
PeopleInfo
peopleInfo1
=
new
PeopleInfo
();
if
(
"04"
.
equals
(
bshlx
))
{
peopleInfo1
.
setObjectType
(
"08"
);
peopleInfo1
.
setObjectValue
(
bshxx
);
childrenList
.
add
(
peopleInfo1
);
}
else
if
(
"05"
.
equals
(
bshlx
))
{
peopleInfo1
.
setObjectType
(
"05"
);
peopleInfo1
.
setObjectValue
(
bshxx
);
childrenList
.
add
(
peopleInfo1
);
}
}
}
}
...
...
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