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
0bf77378
Commit
0bf77378
authored
Jul 29, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员标签同步-gic同步企业为西
parent
23260b05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+11
-6
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
0bf77378
...
...
@@ -1314,7 +1314,6 @@ public class StaffApiServiceImpl implements StaffApiService {
}
@Override
@RedisCache
(
value
=
"qrcode-${clerkCode}-${storeId}"
,
timeOut
=
1
,
timeunit
=
TimeUnit
.
DAYS
)
public
ServiceResponse
<
String
>
getStaffQrcode
(
String
clerkCode
,
String
storeId
)
{
ServiceResponse
<
String
>
resp
=
new
ServiceResponse
<>();
List
<
String
>
clerkCodes
=
new
ArrayList
<>();
...
...
@@ -1331,17 +1330,23 @@ public class StaffApiServiceImpl implements StaffApiService {
logger
.
info
(
"成员没有关联:{}"
,
clerkCode
);
return
null
;
}
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseService
.
selectById
(
relationDTO
.
getWxEnterpriseId
());
SecretSettingDTO
secretSetting
=
secretSettingService
.
getSecretSetting
(
wxEnterpriseDTO
.
getWxEnterpriseId
(),
SecretTypeEnum
.
HAOBAN_HELP
.
getVal
());
String
key
=
"qrcode-"
+
relationDTO
.
getStaffId
();
Object
url
=
RedisUtil
.
getCache
(
key
);
if
(
null
!=
url
)
{
resp
.
setResult
((
String
)
url
);
return
resp
;
}
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseService
.
selectById
(
relationDTO
.
getWxEnterpriseId
());
SecretSettingDTO
secretSetting
=
secretSettingService
.
getSecretSetting
(
wxEnterpriseDTO
.
getWxEnterpriseId
(),
SecretTypeEnum
.
HAOBAN_HELP
.
getVal
());
if
(
null
==
secretSetting
||
secretSetting
.
getCheckFlag
()==
0
)
{
logger
.
info
(
"没有配置secret:{}"
,
wxEnterpriseDTO
.
getWxEnterpriseId
());
return
null
;
}
UserDTO
user
=
qywxUserApiService
.
getSelfWorkWxUser
(
wxEnterpriseDTO
.
getCorpid
(),
secretSetting
.
getSecretVal
(),
relationDTO
.
getWxUserId
());
if
(
user
!=
null
)
{
resp
.
setResult
(
user
.
getQr_code
());
return
resp
;
RedisUtil
.
setCache
(
key
,
user
.
getQr_code
(),
2L
,
TimeUnit
.
DAYS
);
resp
.
setResult
(
user
.
getQr_code
());
return
resp
;
}
return
resp
;
}
...
...
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