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
c013095c
Commit
c013095c
authored
Jul 19, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:通讯录同步修改
parent
c176e5aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+17
-6
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
c013095c
...
...
@@ -29,6 +29,7 @@ import com.gic.haoban.common.utils.UuidUtil;
import
com.gic.haoban.manage.api.dto.*
;
import
com.gic.haoban.manage.api.enums.SecretTypeEnum
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.service.config.Config
;
import
com.gic.haoban.manage.service.dao.mapper.StaffDepartmentRelatedMapper
;
import
com.gic.haoban.manage.service.dao.mapper.StaffMapper
;
import
com.gic.haoban.manage.service.entity.*
;
...
...
@@ -102,6 +103,8 @@ public class StaffApiServiceImpl implements StaffApiService {
private
StoreRangeService
storeRangeService
;
@Autowired
private
EnterpriseService
enterpriseService
;
@Autowired
private
Config
config
;
@Override
public
StaffDTO
selectById
(
String
staffId
)
{
...
...
@@ -314,18 +317,26 @@ public class StaffApiServiceImpl implements StaffApiService {
res
.
setCode
(
4
);
return
res
;
}
UserDTO
user
=
qywxUserApiService
.
getSelfWorkWxUser
(
corpid
,
secretSetting
.
getSecretVal
(),
userId
);
String
staffThirdWxEnterpriseId
=
config
.
getStaffThirdWxEnterpriseId
();
UserDTO
user
=
null
;
if
(
staffThirdWxEnterpriseId
.
contains
(
corpid
))
{
user
=
qywxUserApiService
.
getWorkWxUser
(
corpid
,
config
.
getWxSuiteid
(),
userId
);
}
else
{
user
=
qywxUserApiService
.
getSelfWorkWxUser
(
corpid
,
secretSetting
.
getSecretVal
(),
userId
);
}
if
(
null
==
user
)
{
logger
.
info
(
"企业微信用户不存在:{}:{}"
,
wxEnterpriseId
,
userId
);
res
.
setMessage
(
"企业微信用户不存在"
);
res
.
setCode
(
3
);
return
res
;
}
String
nationCode
=
null
;
String
nationCode
=
null
;
String
phoneNumber
=
null
;
String
imageUrl
=
changeHeaderImageUrl
(
user
.
getAvatar
());
String
mobile
=
user
.
getMobile
();
if
(
StringUtils
.
isNotBlank
(
mobile
))
{
if
(
StringUtils
.
isNotBlank
(
mobile
))
{
String
[]
arr
=
getNationCodeAndPhoneNumber
(
mobile
);
nationCode
=
arr
[
0
];
phoneNumber
=
arr
[
1
];
...
...
@@ -879,7 +890,7 @@ public class StaffApiServiceImpl implements StaffApiService {
return
Collections
.
emptyList
();
}
List
<
String
>
unBindList
=
clerkList
.
stream
().
filter
(
clerkId
->
!
clerkIds
.
contains
(
clerkId
)).
collect
(
Collectors
.
toList
());
logger
.
info
(
"未绑定导购id:{}"
,
JSON
.
toJSONString
(
unBindList
));
logger
.
info
(
"未绑定导购id:{}"
,
JSON
.
toJSONString
(
unBindList
));
return
unBindList
;
}
...
...
@@ -1310,7 +1321,7 @@ public class StaffApiServiceImpl implements StaffApiService {
Object
cache
=
RedisUtil
.
getCache
(
cacheKey
);
if
(
cache
!=
null
)
{
List
<
String
>
storeList
=
(
List
<
String
>)
cache
;
logger
.
info
(
"从缓存中获取通道={},数量:{}"
,
cacheKey
,
storeList
.
size
());
logger
.
info
(
"从缓存中获取通道={},数量:{}"
,
cacheKey
,
storeList
.
size
());
return
storeList
;
}
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
...
...
@@ -1356,7 +1367,7 @@ public class StaffApiServiceImpl implements StaffApiService {
}
@Override
public
List
<
String
>
getHaoBanStoreRolesByStoreWidgetId
(
String
storeWidgetId
,
String
wxEnterpriseId
,
String
enterpriseId
)
{
public
List
<
String
>
getHaoBanStoreRolesByStoreWidgetId
(
String
storeWidgetId
,
String
wxEnterpriseId
,
String
enterpriseId
)
{
return
getStoreWidgetIdStoreIds
(
storeWidgetId
,
enterpriseId
);
}
...
...
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