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
d495138c
Commit
d495138c
authored
Jul 08, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
切自建刷新好友同步标签不查询好友
parent
f8b73db8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
7 deletions
+32
-7
ExternalUserDTO.java
...n/java/com/gic/haoban/manage/api/dto/ExternalUserDTO.java
+10
-0
QywxTagSyncInfoPojo.java
...m/gic/haoban/manage/service/pojo/QywxTagSyncInfoPojo.java
+10
-0
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+12
-7
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/ExternalUserDTO.java
View file @
d495138c
...
@@ -42,6 +42,16 @@ public class ExternalUserDTO implements Serializable{
...
@@ -42,6 +42,16 @@ public class ExternalUserDTO implements Serializable{
// 是否刷新好友
// 是否刷新好友
private
boolean
isFlush
=
false
;
private
boolean
isFlush
=
false
;
private
String
externalUseridInfo
;
public
String
getExternalUseridInfo
()
{
return
externalUseridInfo
;
}
public
void
setExternalUseridInfo
(
String
externalUseridInfo
)
{
this
.
externalUseridInfo
=
externalUseridInfo
;
}
public
boolean
isFlush
()
{
public
boolean
isFlush
()
{
return
isFlush
;
return
isFlush
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/pojo/QywxTagSyncInfoPojo.java
View file @
d495138c
...
@@ -43,6 +43,16 @@ public class QywxTagSyncInfoPojo implements Serializable {
...
@@ -43,6 +43,16 @@ public class QywxTagSyncInfoPojo implements Serializable {
*/
*/
private
String
enterpriseId
;
private
String
enterpriseId
;
private
String
externalUseridInfo
;
public
String
getExternalUseridInfo
()
{
return
externalUseridInfo
;
}
public
void
setExternalUseridInfo
(
String
externalUseridInfo
)
{
this
.
externalUseridInfo
=
externalUseridInfo
;
}
public
String
getWxEnterpriseId
()
{
public
String
getWxEnterpriseId
()
{
return
wxEnterpriseId
;
return
wxEnterpriseId
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
d495138c
...
@@ -759,7 +759,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -759,7 +759,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
this
.
saveExternalClerk
(
memberId
,
staffId
,
dto
,
staffClerkRelationDTO
,
1
);
this
.
saveExternalClerk
(
memberId
,
staffId
,
dto
,
staffClerkRelationDTO
,
1
);
// this.sendWelcome(dto, qwDTO, enterpriseId, staffId, clerkId,memberId);
// this.sendWelcome(dto, qwDTO, enterpriseId, staffId, clerkId,memberId);
//同步好友标签
//同步好友标签
this
.
pushTagSync
(
memberId
,
wxEnterpriseId
,
enterpriseId
);
this
.
pushTagSync
(
memberId
,
wxEnterpriseId
,
enterpriseId
,
null
);
//回调给会员,更新是否为企微好友
//回调给会员,更新是否为企微好友
log
.
info
(
"通知会员 合并会员后更新为企微好友,memberId:{}"
,
memberId
);
log
.
info
(
"通知会员 合并会员后更新为企微好友,memberId:{}"
,
memberId
);
// this.memberApiService.updateMemberQywxFlag(enterpriseId, memberId, 1);
// this.memberApiService.updateMemberQywxFlag(enterpriseId, memberId, 1);
...
@@ -1187,7 +1187,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -1187,7 +1187,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
return
;
return
;
}
}
pushTagSync
(
dto
.
getExternalUserid
(),
wxUserId
pushTagSync
(
dto
.
getExternalUserid
(),
wxUserId
,
GicQywxSyncTypeEnum
.
FRIEND_TAG_SYNC
.
getType
(),
QywxSyncTaskTypeEnum
.
MEMBER_SYNC
.
getType
(),
wxEnterprise
.
getWxEnterpriseId
(),
null
);
,
GicQywxSyncTypeEnum
.
FRIEND_TAG_SYNC
.
getType
(),
QywxSyncTaskTypeEnum
.
MEMBER_SYNC
.
getType
(),
wxEnterprise
.
getWxEnterpriseId
(),
null
,
null
);
}
}
@Override
@Override
...
@@ -1385,7 +1385,11 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -1385,7 +1385,11 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
throw
new
WxApiLimitException
(
"getCorpSelfExternalUseridInfo接口调用被限制"
);
throw
new
WxApiLimitException
(
"getCorpSelfExternalUseridInfo接口调用被限制"
);
}
}
ExternalUserPojo
pojo
=
getExternalUserPojo
(
unionIdJson
,
wxUserId
,
wxEnterpriseId
);
ExternalUserPojo
pojo
=
getExternalUserPojo
(
unionIdJson
,
wxUserId
,
wxEnterpriseId
);
return
EntityUtil
.
changeEntityByJSON
(
ExternalUserDTO
.
class
,
pojo
);
ExternalUserDTO
dto
=
EntityUtil
.
changeEntityByJSON
(
ExternalUserDTO
.
class
,
pojo
);
if
(
qwDTO
.
isSelf
())
{
dto
.
setExternalUseridInfo
(
unionIdJson
);
}
return
dto
;
}
}
@Override
@Override
...
@@ -1530,7 +1534,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -1530,7 +1534,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
this
.
saveExternalClerk
(
memberId
,
staffId
,
unionDTO
,
staffClerkRelation
,
statusFlag
);
this
.
saveExternalClerk
(
memberId
,
staffId
,
unionDTO
,
staffClerkRelation
,
statusFlag
);
if
(
StringUtils
.
isNotBlank
(
memberId
))
{
if
(
StringUtils
.
isNotBlank
(
memberId
))
{
if
(
null
==
RedisUtil
.
getCache
(
"zhuan_self"
))
{
if
(
null
==
RedisUtil
.
getCache
(
"zhuan_self"
))
{
this
.
pushTagSync
(
memberId
,
wxEnterpriseId
,
enterpriseId
);
this
.
pushTagSync
(
memberId
,
wxEnterpriseId
,
enterpriseId
,
dto
.
getExternalUseridInfo
()
);
}
else
{
}
else
{
log
.
info
(
"不同步标签"
);
log
.
info
(
"不同步标签"
);
}
}
...
@@ -1563,7 +1567,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -1563,7 +1567,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
/**
/**
* 同步
* 同步
*/
*/
private
void
pushTagSync
(
String
dataId
,
String
taskId
,
int
syncType
,
int
taskType
,
String
wxEnterpriseId
,
String
enterpriseId
)
{
private
void
pushTagSync
(
String
dataId
,
String
taskId
,
int
syncType
,
int
taskType
,
String
wxEnterpriseId
,
String
enterpriseId
,
String
externalUseridInfo
)
{
QywxTagSyncInfoPojo
pojo
=
new
QywxTagSyncInfoPojo
();
QywxTagSyncInfoPojo
pojo
=
new
QywxTagSyncInfoPojo
();
pojo
.
setDataId
(
dataId
);
pojo
.
setDataId
(
dataId
);
pojo
.
setTaskId
(
taskId
);
pojo
.
setTaskId
(
taskId
);
...
@@ -1572,6 +1576,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -1572,6 +1576,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
pojo
.
setSyncType
(
syncType
);
pojo
.
setSyncType
(
syncType
);
pojo
.
setWxEnterpriseId
(
wxEnterpriseId
);
pojo
.
setWxEnterpriseId
(
wxEnterpriseId
);
pojo
.
setEnterpriseId
(
enterpriseId
);
pojo
.
setEnterpriseId
(
enterpriseId
);
pojo
.
setExternalUseridInfo
(
externalUseridInfo
);
GicMQClient
clientInstance
=
GICMQClientUtil
.
getClientInstance
();
GicMQClient
clientInstance
=
GICMQClientUtil
.
getClientInstance
();
try
{
try
{
int
delay
=
0
;
int
delay
=
0
;
...
@@ -1593,8 +1598,8 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -1593,8 +1598,8 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
/**
/**
* 同步
* 同步
*/
*/
private
void
pushTagSync
(
String
memberId
,
String
wxEnterpriseId
,
String
enterpriseId
)
{
private
void
pushTagSync
(
String
memberId
,
String
wxEnterpriseId
,
String
enterpriseId
,
String
externalUseridInfo
)
{
this
.
pushTagSync
(
memberId
,
"-1"
,
GicQywxSyncTypeEnum
.
SINGLE_WXENT_MEMNER_SYNC
.
getType
(),
QywxSyncTaskTypeEnum
.
MEMBER_SYNC
.
getType
(),
wxEnterpriseId
,
enterpriseId
);
this
.
pushTagSync
(
memberId
,
"-1"
,
GicQywxSyncTypeEnum
.
SINGLE_WXENT_MEMNER_SYNC
.
getType
(),
QywxSyncTaskTypeEnum
.
MEMBER_SYNC
.
getType
(),
wxEnterpriseId
,
enterpriseId
,
externalUseridInfo
);
}
}
private
String
saveMemberUnionTable
(
ExternalUserDTO
dto
)
{
private
String
saveMemberUnionTable
(
ExternalUserDTO
dto
)
{
...
...
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