离职分配相关bug

1 parent 0b70e5a9
......@@ -127,7 +127,7 @@ public class WeConstans {
/**
* 已离职
*/
public static final Integer WE_USER_IS_LEAVE = 6;
public static final Integer WE_USER_IS_LEAVE = 5;
/**
......
......@@ -14,7 +14,7 @@ import com.linkwechat.wecom.retry.WeCommonRetryWhen;
* @author: HaoN
* @create: 2020-08-27 16:42
**/
@BaseRequest(baseURL = "${weComServerUrl}${weComePrefix}", interceptor = WeAccessTokenInterceptor.class)
@BaseRequest(baseURL = "${weComServerUrl}${weComePrefix}", interceptor = WeCommonAccessTokenInterceptor.class)
@Retry(maxRetryCount = "3", maxRetryInterval = "1000", condition = WeCommonRetryWhen.class)
public interface WeUserClient {
......@@ -87,7 +87,7 @@ public interface WeUserClient {
* @param allocateWeCustomerDto
* @return
*/
@Request(url = "/externalcontact/transfer_customer", type = "POST")
@Request(url = "/externalcontact/transfer_customer", type = "POST",interceptor = WeAccessTokenInterceptor.class)
JobExtendsCustomer transferCustomer(@JSONBody AllocateWeCustomerDto allocateWeCustomerDto);
......@@ -96,7 +96,7 @@ public interface WeUserClient {
* @param jobExtendsParam
* @return
*/
@Post(url = "externalcontact/transfer_result")
@Post(url = "externalcontact/transfer_result",interceptor = WeAccessTokenInterceptor.class)
JobExtendsCustomer transferResult(@JSONBody JobExtendsCustomer.JobExtendsParam jobExtendsParam);
......@@ -106,7 +106,7 @@ public interface WeUserClient {
* 分配成员群
* @return
*/
@Request(url="/externalcontact/groupchat/transfer", type = "POST")
@Request(url="/externalcontact/groupchat/transfer", type = "POST",interceptor = WeAccessTokenInterceptor.class)
AllocateGroupDto allocateGroup(@JSONBody AllocateWeGroupDto allocateWeGroupDto);
......
......@@ -17,7 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* @description: 微信token拦截器(外部联系人)
* @description: 微信token拦截器(通讯录,等相关常用的)
* @author: HaoN
* @create: 2020-08-27 22:36
**/
......
......@@ -244,7 +244,7 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
JobExtendsCustomer jobExtendsCustomer = weUserClient.transferCustomer(
AllocateWeCustomerDto.builder()
.external_userid(
(String[]) allocateWeCustomers.stream().map(WeCustomer::getExternalUserid).toArray()
allocateWeCustomers.stream().map(WeCustomer::getExternalUserid).collect(Collectors.toList()).stream().toArray(String[]::new)
)
.handover_userid(weLeaveUserInfoAllocateVo.getHandoverUserid())
.takeover_userid(weLeaveUserInfoAllocateVo.getTakeoverUserid())
......
......@@ -99,6 +99,7 @@ public class WeUserServiceImpl extends ServiceImpl<WeUserMapper, WeUser> impleme
"date_format (create_time,'%Y-%m-%d') >= date_format('" + weUser.getBeginTime() + "','%Y-%m-%d')")
.apply(StringUtils.isNotBlank(weUser.getEndTime()),
"date_format (create_time,'%Y-%m-%d') <= date_format('" + weUser.getEndTime() + "','%Y-%m-%d')")
.orderByDesc(WeUser::getCreateTime)
);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!