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
bc3c6147
Commit
bc3c6147
authored
May 19, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活码
parent
1712e73b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
HmQrcodeApiServiceImpl.java
...e/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
+3
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
View file @
bc3c6147
...
@@ -395,12 +395,13 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
...
@@ -395,12 +395,13 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
if
(
CollectionUtils
.
isEmpty
(
userIds
))
{
if
(
CollectionUtils
.
isEmpty
(
userIds
))
{
return
ServiceResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCodeCommon
.
ERR_8
.
getCode
()),
"导购未关联好办"
);
return
ServiceResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCodeCommon
.
ERR_8
.
getCode
()),
"导购未关联好办"
);
}
}
qdto
.
setClerkIdList
(
userIds
);
qdto
.
setClerkIdList
(
inClerkIdList
);
HmQrcodeBO
hm
=
hmQrcodeService
.
queryById
(
hmId
);
HmQrcodeBO
hm
=
hmQrcodeService
.
queryById
(
hmId
);
List
<
String
>
clerkIdList
=
this
.
setStoreClerk
(
qdto
,
wxEnterpriseId
,
hmId
,
hm
.
getHmType
(),
false
);
List
<
String
>
clerkIdList
=
this
.
setStoreClerk
(
qdto
,
wxEnterpriseId
,
hmId
,
hm
.
getHmType
(),
false
);
if
(
CollectionUtils
.
isEmpty
(
clerkIdList
))
{
if
(
CollectionUtils
.
isEmpty
(
clerkIdList
))
{
return
ServiceResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCodeCommon
.
ERR_8
.
getCode
()),
"该导购已经生成过活码或未关联过好办"
);
return
ServiceResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCodeCommon
.
ERR_8
.
getCode
()),
"该导购已经生成过活码或未关联过好办"
);
}
}
userIds
=
staffClerkRelationService
.
listWxUserIdByClerkIds
(
inClerkIdList
,
wxEnterpriseId
);
//更新活码
//更新活码
QywxExternalcontactDTO
qywxExternalcontactDTO
=
new
QywxExternalcontactDTO
();
QywxExternalcontactDTO
qywxExternalcontactDTO
=
new
QywxExternalcontactDTO
();
qywxExternalcontactDTO
.
setType
(
hm
.
getHmType
());
qywxExternalcontactDTO
.
setType
(
hm
.
getHmType
());
...
@@ -408,7 +409,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
...
@@ -408,7 +409,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
qywxExternalcontactDTO
.
setSkipVerify
(
hm
.
getPassFlag
()
==
1
);
qywxExternalcontactDTO
.
setSkipVerify
(
hm
.
getPassFlag
()
==
1
);
qywxExternalcontactDTO
.
setState
(
"HM"
+
hmId
);
qywxExternalcontactDTO
.
setState
(
"HM"
+
hmId
);
qywxExternalcontactDTO
.
setConfigId
(
hm
.
getWxConfigId
());
qywxExternalcontactDTO
.
setConfigId
(
hm
.
getWxConfigId
());
qywxExternalcontactDTO
.
setUser
(
clerkIdList
);
qywxExternalcontactDTO
.
setUser
(
userIds
);
QywxResponseDTO
qywxResponseDTO
=
qywxUserApiService
.
updateContactWay
(
qwDTO
.
getThirdCorpid
(),
qwDTO
.
getSelf3thSecret
(),
qywxExternalcontactDTO
,
qwDTO
.
isSelf
(),
qwDTO
.
getUrlHost
());
QywxResponseDTO
qywxResponseDTO
=
qywxUserApiService
.
updateContactWay
(
qwDTO
.
getThirdCorpid
(),
qwDTO
.
getSelf3thSecret
(),
qywxExternalcontactDTO
,
qwDTO
.
isSelf
(),
qwDTO
.
getUrlHost
());
if
(
qywxResponseDTO
.
getErrcode
()
!=
0
)
{
if
(
qywxResponseDTO
.
getErrcode
()
!=
0
)
{
logger
.
error
(
"更新企微活码失败"
);
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