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
e09a2f6c
Commit
e09a2f6c
authored
May 19, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多人活码更新
parent
d4e816df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
HmClerkRelationServiceImpl.java
...e/service/service/hm/impl/HmClerkRelationServiceImpl.java
+1
-1
HmQrcodeApiServiceImpl.java
...e/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
+8
-6
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/hm/impl/HmClerkRelationServiceImpl.java
View file @
e09a2f6c
...
...
@@ -285,7 +285,7 @@ public class HmClerkRelationServiceImpl implements HmClerkRelationService {
GicMQClient
clientInstance
=
GICMQClientUtil
.
getClientInstance
();
try
{
clientInstance
.
sendBatchMessages
(
"departmentSyncDealMq"
,
listRet
,
1
0
);
clientInstance
.
sendBatchMessages
(
"departmentSyncDealMq"
,
listRet
,
1
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
View file @
e09a2f6c
...
...
@@ -385,11 +385,17 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
return
ServiceResponse
.
success
();
}
@Autowired
public
ServiceResponse
batchUpdateHm
(
HmQrcodeQDTO
qdto
)
{
String
wxEnterpriseId
=
qdto
.
getWxEnterpriseId
();
Long
hmId
=
qdto
.
getHmId
();
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
);
List
<
String
>
inClerkIdList
=
qdto
.
getClerkIdList
()
;
List
<
String
>
userIds
=
staffClerkRelationService
.
listWxUserIdByClerkIds
(
inClerkIdList
,
wxEnterpriseId
);
if
(
CollectionUtils
.
isEmpty
(
userIds
))
{
return
ServiceResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCodeCommon
.
ERR_8
.
getCode
()),
"导购未关联好办"
);
}
qdto
.
setClerkIdList
(
userIds
);
HmQrcodeBO
hm
=
hmQrcodeService
.
queryById
(
hmId
);
List
<
String
>
clerkIdList
=
this
.
setStoreClerk
(
qdto
,
wxEnterpriseId
,
hmId
,
hm
.
getHmType
(),
false
);
if
(
CollectionUtils
.
isEmpty
(
clerkIdList
))
{
...
...
@@ -402,11 +408,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
qywxExternalcontactDTO
.
setSkipVerify
(
hm
.
getPassFlag
()
==
1
);
qywxExternalcontactDTO
.
setState
(
"HM"
+
hmId
);
qywxExternalcontactDTO
.
setConfigId
(
hm
.
getWxConfigId
());
List
<
String
>
userIds
=
staffClerkRelationService
.
listWxUserIdByClerkIds
(
clerkIdList
,
wxEnterpriseId
);
if
(
CollectionUtils
.
isEmpty
(
userIds
))
{
return
ServiceResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCodeCommon
.
ERR_8
.
getCode
()),
"导购未关联好办"
);
}
qywxExternalcontactDTO
.
setUser
(
userIds
);
qywxExternalcontactDTO
.
setUser
(
clerkIdList
);
QywxResponseDTO
qywxResponseDTO
=
qywxUserApiService
.
updateContactWay
(
qwDTO
.
getThirdCorpid
(),
qwDTO
.
getSelf3thSecret
(),
qywxExternalcontactDTO
,
qwDTO
.
isSelf
(),
qwDTO
.
getUrlHost
());
if
(
qywxResponseDTO
.
getErrcode
()
!=
0
)
{
logger
.
error
(
"更新企微活码失败"
);
...
...
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