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
9aa9e977
Commit
9aa9e977
authored
Jan 29, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成员二维码
parent
35ea05b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
26 deletions
+2
-26
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+2
-26
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
9aa9e977
...
...
@@ -35,7 +35,6 @@ import com.gic.haoban.manage.service.entity.TabHaobanSyncErrorLog;
import
com.gic.haoban.manage.service.service.*
;
import
com.gic.haoban.manage.service.util.EmojiFilterUtil
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.thirdparty.api.service.QQCloudPicService
;
import
com.gic.thirdparty.cloudfile.CloudFileUtil
;
import
com.gic.thirdparty.cloudfile.enums.CloudFileBusinessOptEnum
;
import
com.gic.thirdparty.cloudfile.enums.CloudFileTypeEnum
;
...
...
@@ -83,8 +82,6 @@ public class StaffApiServiceImpl implements StaffApiService {
@Autowired
private
SyncErrorLogService
syncErrorLogService
;
@Autowired
private
QQCloudPicService
qqCloudPicService
;
@Autowired
private
StaffClerkRelationService
staffClerkRelationService
;
@Autowired
private
SecretSettingService
secretSettingService
;
...
...
@@ -584,30 +581,9 @@ public class StaffApiServiceImpl implements StaffApiService {
logger
.
info
(
"成员没有关联:{}"
,
clerkCode
);
return
null
;
}
String
key
=
"qrcode-"
+
relationDTO
.
getStaffId
();
Object
url
=
RedisUtil
.
getCache
(
key
);
if
(
null
!=
url
)
{
resp
.
setResult
((
String
)
url
);
return
resp
;
}
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
relationDTO
.
getWxEnterpriseId
());
SecretSettingDTO
secretSetting
=
secretSettingService
.
getSecretSetting
(
qwDTO
.
getWxEnterpriseId
(),
SecretTypeEnum
.
CUSTOMIZED_APP
.
getVal
());
if
(
null
==
secretSetting
||
secretSetting
.
getCheckFlag
()
==
0
)
{
logger
.
info
(
"没有配置secret:{}"
,
qwDTO
.
getWxEnterpriseId
());
return
null
;
}
String
staffId
=
relationDTO
.
getStaffId
()
;
String
staffId
=
relationDTO
.
getStaffId
();
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByPrimaryKey
(
staffId
)
;
String
wxUserId
=
staff
.
getWxUserId
()
;
if
(
qwDTO
.
needOpenUserIdDk
())
{
wxUserId
=
staff
.
getWxOpenUseId
()
;
}
UserDTO
user
=
qywxUserApiService
.
getSelfWorkWxUser
(
qwDTO
.
getDkCorpid
(),
secretSetting
.
getSecretVal
(),
wxUserId
);
if
(
user
!=
null
)
{
RedisUtil
.
setCache
(
key
,
user
.
getQr_code
(),
2L
,
TimeUnit
.
DAYS
);
resp
.
setResult
(
user
.
getQr_code
());
return
resp
;
}
resp
.
setResult
(
staff
.
getQrCode
());
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