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
6eded49a
Commit
6eded49a
authored
Jul 30, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标签
parent
cf245087
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
QywxTagApiService.java
.../com/gic/haoban/manage/api/service/QywxTagApiService.java
+4
-0
QywxTagApiServiceImpl.java
...anage/service/service/out/impl/QywxTagApiServiceImpl.java
+9
-2
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/QywxTagApiService.java
View file @
6eded49a
...
@@ -83,6 +83,10 @@ public interface QywxTagApiService {
...
@@ -83,6 +83,10 @@ public interface QywxTagApiService {
*/
*/
public
ServiceResponse
syncFriendTagToQywxByExternalUserId
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
externalUserId
,
List
<
String
>
tagItemIds
);
public
ServiceResponse
syncFriendTagToQywxByExternalUserId
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
externalUserId
,
List
<
String
>
tagItemIds
);
public
ServiceResponse
syncFriendTagToQywxByExternalUserId
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
externalUserId
,
List
<
String
>
tagItemIds
,
String
externalUserInfo
);
/**
/**
* 同步企业微信导入gic的会员标签
* 同步企业微信导入gic的会员标签
*
*
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QywxTagApiServiceImpl.java
View file @
6eded49a
...
@@ -479,7 +479,12 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
...
@@ -479,7 +479,12 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
@Override
@Override
public
ServiceResponse
syncFriendTagToQywxByExternalUserId
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
externalUserId
,
List
<
String
>
tagItemIds
)
{
public
ServiceResponse
syncFriendTagToQywxByExternalUserId
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
externalUserId
,
List
<
String
>
tagItemIds
)
{
logger
.
info
(
"同步好友标签到企业微信:externalUserId={},{}"
,
externalUserId
,
JSONObject
.
toJSONString
(
tagItemIds
));
return
this
.
syncFriendTagToQywxByExternalUserId
(
wxEnterpriseId
,
enterpriseId
,
externalUserId
,
tagItemIds
,
null
);
}
@Override
public
ServiceResponse
syncFriendTagToQywxByExternalUserId
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
externalUserId
,
List
<
String
>
tagItemIds
,
String
externalUserInfo
)
{
logger
.
info
(
"同步gic标签到企业微信:externalUserId={},{},{}"
,
externalUserId
,
JSONObject
.
toJSONString
(
tagItemIds
),
externalUserInfo
);
ServiceResponse
resp
=
new
ServiceResponse
();
ServiceResponse
resp
=
new
ServiceResponse
();
//获取需要同步的标签
//获取需要同步的标签
QywxSyncTagFormatPojo
syncTagFormat
=
listSyncTagItems
(
wxEnterpriseId
);
QywxSyncTagFormatPojo
syncTagFormat
=
listSyncTagItems
(
wxEnterpriseId
);
...
@@ -496,12 +501,14 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
...
@@ -496,12 +501,14 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
)
;
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
)
;
//查询外部联系人
//查询外部联系人
String
wxSuiteid
=
config
.
getWxSuiteid
();
String
wxSuiteid
=
config
.
getWxSuiteid
();
String
externalUseridInfo
=
null
;
String
externalUseridInfo
=
externalUserInfo
;
if
(
null
==
externalUseridInfo
)
{
if
(
qwDTO
.
isSelf
())
{
if
(
qwDTO
.
isSelf
())
{
externalUseridInfo
=
this
.
qywxUserApiService
.
getCorpSelfExternalUseridInfo
(
qwDTO
.
getDkCorpid
(),
qwDTO
.
getSelfSecret
(),
externalUserId
,
qwDTO
.
getUrlHost
())
;
externalUseridInfo
=
this
.
qywxUserApiService
.
getCorpSelfExternalUseridInfo
(
qwDTO
.
getDkCorpid
(),
qwDTO
.
getSelfSecret
(),
externalUserId
,
qwDTO
.
getUrlHost
())
;
}
else
{
}
else
{
externalUseridInfo
=
this
.
qywxUserApiService
.
getExternalUseridInfo
(
qwDTO
.
getThirdCorpid
(),
wxSuiteid
,
externalUserId
);
externalUseridInfo
=
this
.
qywxUserApiService
.
getExternalUseridInfo
(
qwDTO
.
getThirdCorpid
(),
wxSuiteid
,
externalUserId
);
}
}
}
if
(
StringUtils
.
isBlank
(
externalUseridInfo
))
{
if
(
StringUtils
.
isBlank
(
externalUseridInfo
))
{
logger
.
info
(
"好友不存在"
);
logger
.
info
(
"好友不存在"
);
resp
.
setCode
(
3
);
resp
.
setCode
(
3
);
...
...
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