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
bad0e53d
Commit
bad0e53d
authored
Jun 25, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/xgh/202506迭代' into 'developer'
标签日志 See merge request
!3029
parents
b0547cd6
ca799e3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
QywxTagApiServiceImpl.java
...anage/service/service/out/impl/QywxTagApiServiceImpl.java
+3
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QywxTagApiServiceImpl.java
View file @
bad0e53d
...
@@ -483,7 +483,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
...
@@ -483,7 +483,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
}
}
/**
/**
* 加好友、刷新好友时,会以gic侧的标签为准。新增或删除企微侧的客户标签。此外部联系人加的每个staff下都会处理
*
gic打标签、
加好友、刷新好友时,会以gic侧的标签为准。新增或删除企微侧的客户标签。此外部联系人加的每个staff下都会处理
*/
*/
@Override
@Override
public
ServiceResponse
syncFriendTagToQywxByExternalUserId
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
externalUserId
,
List
<
String
>
tagItemIds
,
String
externalUserInfo
)
{
public
ServiceResponse
syncFriendTagToQywxByExternalUserId
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
externalUserId
,
List
<
String
>
tagItemIds
,
String
externalUserInfo
)
{
...
@@ -547,12 +547,10 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
...
@@ -547,12 +547,10 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
Sets
.
SetView
<
String
>
needSetTags
=
Sets
.
difference
(
entQywxTagKeys
,
entHasSetQywxTagKeys
);
Sets
.
SetView
<
String
>
needSetTags
=
Sets
.
difference
(
entQywxTagKeys
,
entHasSetQywxTagKeys
);
//需要删除的标签
//需要删除的标签
Sets
.
SetView
<
String
>
needDelTags
=
Sets
.
difference
(
entHasSetQywxTagKeys
,
entQywxTagKeys
);
Sets
.
SetView
<
String
>
needDelTags
=
Sets
.
difference
(
entHasSetQywxTagKeys
,
entQywxTagKeys
);
logger
.
info
(
"该用户打标签:{}"
,
wxUserId
);
if
(
CollectionUtils
.
isEmpty
(
needDelTags
)
&&
CollectionUtils
.
isEmpty
(
needSetTags
))
{
if
(
CollectionUtils
.
isEmpty
(
needDelTags
)
&&
CollectionUtils
.
isEmpty
(
needSetTags
))
{
logger
.
info
(
"
不需要操作:{},{}"
,
wxUserId
,
external
UserId
);
logger
.
info
(
"
无需处理,staff={}"
,
wx
UserId
);
return
;
return
;
}
}
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"corpid"
,
qwDTO
.
getThirdCorpid
());
jsonObject
.
put
(
"corpid"
,
qwDTO
.
getThirdCorpid
());
jsonObject
.
put
(
"suiteId"
,
wxSuiteid
);
jsonObject
.
put
(
"suiteId"
,
wxSuiteid
);
...
@@ -566,7 +564,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
...
@@ -566,7 +564,7 @@ public class QywxTagApiServiceImpl implements QywxTagApiService {
}
}
GicMQClient
clientInstance
=
GICMQClientUtil
.
getClientInstance
();
GicMQClient
clientInstance
=
GICMQClientUtil
.
getClientInstance
();
try
{
try
{
logger
.
info
(
"
qywxMarkTagMq 该用户打标签:
{}"
,
jsonObject
.
toJSONString
());
logger
.
info
(
"
同步企微mq,=
{}"
,
jsonObject
.
toJSONString
());
clientInstance
.
sendMessage
(
"qywxMarkTagMq"
,
jsonObject
.
toJSONString
());
clientInstance
.
sendMessage
(
"qywxMarkTagMq"
,
jsonObject
.
toJSONString
());
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
info
(
"企微标签同步qywxMarkTagMq发送失败:{}"
,
e
.
getMessage
(),
e
);
logger
.
info
(
"企微标签同步qywxMarkTagMq发送失败:{}"
,
e
.
getMessage
(),
e
);
...
...
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