Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
1067c83a
Commit
1067c83a
authored
Apr 20, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d6577d9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
19 deletions
+13
-19
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+13
-19
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
1067c83a
...
@@ -433,12 +433,10 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -433,12 +433,10 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
}
}
String
wxRes
=
qywxUserApiService
.
listExternalUserid
(
wxEnterprise
.
getCorpid
(),
config
.
getSuiteId
(),
userId1
);
String
wxRes
=
qywxUserApiService
.
listExternalUserid
(
wxEnterprise
.
getCorpid
(),
config
.
getSuiteId
(),
userId1
);
JSONObject
wxJson
=
JSON
.
parseObject
(
wxRes
);
String
externalUserId
=
""
;
MemberUnionidRelatedDTO
dto
=
new
MemberUnionidRelatedDTO
();
MemberUnionidRelatedDTO
dto
=
new
MemberUnionidRelatedDTO
();
if
(
"0"
.
equals
(
wxJson
.
getString
(
"errcode"
))){
String
externalUserId
=
""
;
String
external_userid
=
wxJson
.
getString
(
"external_userid"
);
if
(
StringUtils
.
isNotBlank
(
wxRes
)){
JSONArray
jsonArr
=
wxJson
.
getJSONArray
(
external_userid
);
JSONArray
jsonArr
=
JSON
.
parseArray
(
wxRes
);
String
wxName
=
""
;
String
wxName
=
""
;
for
(
Object
externalUserid
:
jsonArr
)
{
for
(
Object
externalUserid
:
jsonArr
)
{
String
uJ
=
qywxUserApiService
.
getExternalUseridInfo
(
wxEnterprise
.
getCorpid
(),
config
.
getSuiteId
(),
externalUserid
.
toString
());
String
uJ
=
qywxUserApiService
.
getExternalUseridInfo
(
wxEnterprise
.
getCorpid
(),
config
.
getSuiteId
(),
externalUserid
.
toString
());
...
@@ -577,20 +575,16 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -577,20 +575,16 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
if
(
StringUtils
.
isBlank
(
res
)){
if
(
StringUtils
.
isBlank
(
res
)){
return
;
return
;
}
}
JSONObject
json
=
JSON
.
parseObject
(
res
);
JSONArray
jsonArr
=
JSON
.
parseArray
(
res
);
if
(
"0"
.
equals
(
json
.
getString
(
"errcode"
))){
List
<
MemberUnionidRelatedDTO
>
list
=
this
.
getByWxUserIdAndWxEnterpriseId
(
wxUserId
,
wxEnterpriseId
);
String
external_userid
=
json
.
getString
(
"external_userid"
);
List
<
String
>
externalUserIdList
=
list
.
stream
().
map
(
student
->
student
.
getExternalUserid
())
JSONArray
jsonArr
=
json
.
getJSONArray
(
external_userid
);
.
collect
(
Collectors
.
toList
());
List
<
MemberUnionidRelatedDTO
>
list
=
this
.
getByWxUserIdAndWxEnterpriseId
(
wxUserId
,
wxEnterpriseId
);
for
(
Object
object
:
jsonArr
)
{
List
<
String
>
externalUserIdList
=
list
.
stream
().
map
(
student
->
student
.
getExternalUserid
())
if
(
externalUserIdList
.
contains
(
object
.
toString
())){
.
collect
(
Collectors
.
toList
());
continue
;
for
(
Object
object
:
jsonArr
)
{
}
else
{
if
(
externalUserIdList
.
contains
(
object
.
toString
())){
//String string = qywxUserApiService.getCorpSelfExternalUseridInfo(enterprise.getCorpid(), enterprise.getWxSecretKey(), object.toString());
continue
;
this
.
add
(
wxEnterpriseId
,
object
.
toString
(),
wxUserId
);
}
else
{
//String string = qywxUserApiService.getCorpSelfExternalUseridInfo(enterprise.getCorpid(), enterprise.getWxSecretKey(), object.toString());
this
.
add
(
wxEnterpriseId
,
object
.
toString
(),
wxUserId
);
}
}
}
}
}
...
...
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