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
1
Merge Requests
1
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
a6666573
Commit
a6666573
authored
Aug 16, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通讯录
parent
df7ff86f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+5
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
a6666573
...
...
@@ -198,7 +198,7 @@ public class StaffApiServiceImpl implements StaffApiService {
res
.
setCode
(
2
);
return
res
;
}
String
c
orpid
=
qwDTO
.
getDkCorpid
()
;
String
dkC
orpid
=
qwDTO
.
getDkCorpid
()
;
SecretSettingDTO
secretSetting
=
secretSettingService
.
getSecretSetting
(
qwDTO
.
getWxEnterpriseId
(),
SecretTypeEnum
.
CUSTOMIZED_APP
.
getVal
());
if
(
null
==
secretSetting
||
secretSetting
.
getCheckFlag
()
==
0
)
{
logger
.
info
(
"没有配置secret:{}"
,
JSONObject
.
toJSONString
(
qwDTO
));
...
...
@@ -208,16 +208,16 @@ public class StaffApiServiceImpl implements StaffApiService {
}
UserDTO
user
=
null
;
if
(
qwDTO
.
getWxSecurityType
()==
4
)
{
user
=
qywxUserApiService
.
getWorkWxUser
(
corpid
,
config
.
getWxSuiteid
(),
wxUserId
);
user
=
qywxUserApiService
.
getWorkWxUser
(
qwDTO
.
getThirdCorpid
()
,
config
.
getWxSuiteid
(),
wxUserId
);
logger
.
info
(
"成员详情(第三方)={}"
,
JSON
.
toJSONString
(
user
))
;
UserDTO
userSelf
=
qywxUserApiService
.
getSelfWorkWxUser
(
qwDTO
.
getDkCorpid
()
,
secretSetting
.
getSecretVal
(),
user
.
getOpen_userid
());
UserDTO
userSelf
=
qywxUserApiService
.
getSelfWorkWxUser
(
dkCorpid
,
secretSetting
.
getSecretVal
(),
user
.
getOpen_userid
());
logger
.
info
(
"成员详情(代开)={}"
,
JSON
.
toJSONString
(
user
))
;
if
(
user
!=
null
&&
userSelf
!=
null
)
{
user
.
setName
(
userSelf
.
getName
());
user
.
setPosition
(
userSelf
.
getPosition
());
}
}
else
{
user
=
qywxUserApiService
.
getSelfWorkWxUser
(
c
orpid
,
secretSetting
.
getSecretVal
(),
wxUserId
);
user
=
qywxUserApiService
.
getSelfWorkWxUser
(
dkC
orpid
,
secretSetting
.
getSecretVal
(),
wxUserId
);
logger
.
info
(
"成员详情(代开)={}"
,
JSON
.
toJSONString
(
user
))
;
}
if
(
null
==
user
)
{
...
...
@@ -235,7 +235,7 @@ public class StaffApiServiceImpl implements StaffApiService {
nationCode
=
arr
[
0
];
phoneNumber
=
arr
[
1
];
}
String
openUserid
=
getOpenUserid
(
wxUserId
,
c
orpid
,
qwDTO
);
String
openUserid
=
getOpenUserid
(
wxUserId
,
dkC
orpid
,
qwDTO
);
TabHaobanStaff
staff
=
staffService
.
selectByUserIdAndEnterpriseId
(
wxUserId
,
openUserid
,
wxEnterpriseId
);
if
(
staff
!=
null
)
{
staffService
.
delOtherStaffByWxUserId
(
staff
.
getWxUserId
(),
staff
.
getStaffId
(),
wxEnterpriseId
);
...
...
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