离职分配相关bug

1 parent 20a4dab7
......@@ -74,10 +74,10 @@ public interface WeUserClient {
/**
* 分配客户(离职继承分配客户)
* 离职继承分配客户
* @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);
......
......@@ -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()
.external_userid(
allocateWeCustomers.stream().map(WeCustomer::getExternalUserid).collect(Collectors.toList()).stream().toArray(String[]::new)
......@@ -251,7 +261,7 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
.build()
);
if(jobExtendsCustomer.getErrcode().equals(WeConstans.WE_SUCCESS_CODE)){
if(weResultDto.getErrcode().equals(WeConstans.WE_SUCCESS_CODE)){
this.baseMapper.batchAddOrUpdate(allocateWeCustomers);
List<WeAllocateCustomer> weAllocateCustomers=new ArrayList<>();
allocateWeCustomers.stream().forEach(k->{
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!