Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7796dde0
authored
Dec 24, 2021
by
linkwechat8856@163.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
离职分配相关bug
1 parent
20a4dab7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/client/WeUserClient.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/client/WeUserClient.java
View file @
7796dde
...
@@ -74,10 +74,10 @@ public interface WeUserClient {
...
@@ -74,10 +74,10 @@ public interface WeUserClient {
/**
/**
*
分配客户(离职继承分配客户)
*
离职继承分配客户
* @return
* @return
*/
*/
@Request
(
url
=
"/externalcontact/resigned/transfer_customer"
,
type
=
"POST"
)
@Request
(
url
=
"/externalcontact/resigned/transfer_customer"
,
type
=
"POST"
,
interceptor
=
WeAccessTokenInterceptor
.
class
)
WeResultDto
allocateCustomer
(
@JSONBody
AllocateWeCustomerDto
allocateWeCustomerDto
);
WeResultDto
allocateCustomer
(
@JSONBody
AllocateWeCustomerDto
allocateWeCustomerDto
);
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
View file @
7796dde
...
@@ -241,7 +241,17 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
...
@@ -241,7 +241,17 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
});
});
JobExtendsCustomer
jobExtendsCustomer
=
weUserClient
.
transferCustomer
(
// JobExtendsCustomer jobExtendsCustomer = weUserClient.transferCustomer(
// AllocateWeCustomerDto.builder()
// .external_userid(
// allocateWeCustomers.stream().map(WeCustomer::getExternalUserid).collect(Collectors.toList()).stream().toArray(String[]::new)
// )
// .handover_userid(weLeaveUserInfoAllocateVo.getHandoverUserid())
// .takeover_userid(weLeaveUserInfoAllocateVo.getTakeoverUserid())
// .build()
// );
WeResultDto
weResultDto
=
weUserClient
.
allocateCustomer
(
AllocateWeCustomerDto
.
builder
()
AllocateWeCustomerDto
.
builder
()
.
external_userid
(
.
external_userid
(
allocateWeCustomers
.
stream
().
map
(
WeCustomer:
:
getExternalUserid
).
collect
(
Collectors
.
toList
()).
stream
().
toArray
(
String
[]::
new
)
allocateWeCustomers
.
stream
().
map
(
WeCustomer:
:
getExternalUserid
).
collect
(
Collectors
.
toList
()).
stream
().
toArray
(
String
[]::
new
)
...
@@ -251,7 +261,7 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
...
@@ -251,7 +261,7 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
.
build
()
.
build
()
);
);
if
(
jobExtendsCustomer
.
getErrcode
().
equals
(
WeConstans
.
WE_SUCCESS_CODE
)){
if
(
weResultDto
.
getErrcode
().
equals
(
WeConstans
.
WE_SUCCESS_CODE
)){
this
.
baseMapper
.
batchAddOrUpdate
(
allocateWeCustomers
);
this
.
baseMapper
.
batchAddOrUpdate
(
allocateWeCustomers
);
List
<
WeAllocateCustomer
>
weAllocateCustomers
=
new
ArrayList
<>();
List
<
WeAllocateCustomer
>
weAllocateCustomers
=
new
ArrayList
<>();
allocateWeCustomers
.
stream
().
forEach
(
k
->{
allocateWeCustomers
.
stream
().
forEach
(
k
->{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment