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
06c0be13
Commit
06c0be13
authored
Jul 09, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
刷新好友标签
parent
d495138c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
QywxTagApiService.java
.../com/gic/haoban/manage/api/service/QywxTagApiService.java
+1
-1
QywxTagApiServiceImpl.java
...anage/service/service/out/impl/QywxTagApiServiceImpl.java
+7
-3
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/QywxTagApiService.java
View file @
06c0be13
...
...
@@ -90,7 +90,7 @@ public interface QywxTagApiService {
* @param externalUserId
* @return
*/
public
ServiceResponse
syncQywxTagToGicByExternalUserId
(
String
wxEnterpriseId
,
String
externalUserId
,
String
wxUserId
);
public
ServiceResponse
syncQywxTagToGicByExternalUserId
(
String
wxEnterpriseId
,
String
externalUserId
,
String
wxUserId
,
String
externalUserInfo
);
/**
* 更改状态
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QywxTagApiServiceImpl.java
View file @
06c0be13
...
...
@@ -606,7 +606,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
@Override
public
ServiceResponse
syncQywxTagToGicByExternalUserId
(
String
wxEnterpriseId
,
String
externalUserId
,
String
wxUserId
)
{
public
ServiceResponse
syncQywxTagToGicByExternalUserId
(
String
wxEnterpriseId
,
String
externalUserId
,
String
wxUserId
,
String
externalUserInfo
)
{
//刷新标签的时候不允许同步
ServiceResponse
resp
=
new
ServiceResponse
();
//所有以及关联同步的标签
...
...
@@ -622,11 +622,15 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
)
;
//查询外部联系人
String
externalUseridInfo
=
null
;
if
(
qwDTO
.
isSelf
()
)
{
externalUseridInfo
=
this
.
qywxUserApiService
.
getCorpSelfExternalUseridInfo
(
qwDTO
.
getDkCorpid
(),
qwDTO
.
getSelfSecret
(),
externalUserId
,
qwDTO
.
getUrlHost
())
;
if
(
null
!=
externalUserInfo
)
{
externalUseridInfo
=
externalUserInfo
;
}
else
{
if
(
qwDTO
.
isSelf
())
{
externalUseridInfo
=
this
.
qywxUserApiService
.
getCorpSelfExternalUseridInfo
(
qwDTO
.
getDkCorpid
(),
qwDTO
.
getSelfSecret
(),
externalUserId
,
qwDTO
.
getUrlHost
());
}
else
{
externalUseridInfo
=
this
.
qywxUserApiService
.
getExternalUseridInfo
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
externalUserId
);
}
}
if
(
StringUtils
.
isBlank
(
externalUseridInfo
))
{
logger
.
info
(
"好友不存在"
);
resp
.
setCode
(
2
);
...
...
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