离职分配相关bug

1 parent 0b70e5a9
...@@ -127,7 +127,7 @@ public class WeConstans { ...@@ -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; ...@@ -14,7 +14,7 @@ import com.linkwechat.wecom.retry.WeCommonRetryWhen;
* @author: HaoN * @author: HaoN
* @create: 2020-08-27 16:42 * @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) @Retry(maxRetryCount = "3", maxRetryInterval = "1000", condition = WeCommonRetryWhen.class)
public interface WeUserClient { public interface WeUserClient {
...@@ -87,7 +87,7 @@ public interface WeUserClient { ...@@ -87,7 +87,7 @@ public interface WeUserClient {
* @param allocateWeCustomerDto * @param allocateWeCustomerDto
* @return * @return
*/ */
@Request(url = "/externalcontact/transfer_customer", type = "POST") @Request(url = "/externalcontact/transfer_customer", type = "POST",interceptor = WeAccessTokenInterceptor.class)
JobExtendsCustomer transferCustomer(@JSONBody AllocateWeCustomerDto allocateWeCustomerDto); JobExtendsCustomer transferCustomer(@JSONBody AllocateWeCustomerDto allocateWeCustomerDto);
...@@ -96,7 +96,7 @@ public interface WeUserClient { ...@@ -96,7 +96,7 @@ public interface WeUserClient {
* @param jobExtendsParam * @param jobExtendsParam
* @return * @return
*/ */
@Post(url = "externalcontact/transfer_result") @Post(url = "externalcontact/transfer_result",interceptor = WeAccessTokenInterceptor.class)
JobExtendsCustomer transferResult(@JSONBody JobExtendsCustomer.JobExtendsParam jobExtendsParam); JobExtendsCustomer transferResult(@JSONBody JobExtendsCustomer.JobExtendsParam jobExtendsParam);
...@@ -106,7 +106,7 @@ public interface WeUserClient { ...@@ -106,7 +106,7 @@ public interface WeUserClient {
* 分配成员群 * 分配成员群
* @return * @return
*/ */
@Request(url="/externalcontact/groupchat/transfer", type = "POST") @Request(url="/externalcontact/groupchat/transfer", type = "POST",interceptor = WeAccessTokenInterceptor.class)
AllocateGroupDto allocateGroup(@JSONBody AllocateWeGroupDto allocateWeGroupDto); AllocateGroupDto allocateGroup(@JSONBody AllocateWeGroupDto allocateWeGroupDto);
......
...@@ -17,7 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -17,7 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/** /**
* @description: 微信token拦截器(外部联系人) * @description: 微信token拦截器(通讯录,等相关常用的)
* @author: HaoN * @author: HaoN
* @create: 2020-08-27 22:36 * @create: 2020-08-27 22:36
**/ **/
......
...@@ -244,7 +244,7 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto ...@@ -244,7 +244,7 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
JobExtendsCustomer jobExtendsCustomer = weUserClient.transferCustomer( JobExtendsCustomer jobExtendsCustomer = weUserClient.transferCustomer(
AllocateWeCustomerDto.builder() AllocateWeCustomerDto.builder()
.external_userid( .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()) .handover_userid(weLeaveUserInfoAllocateVo.getHandoverUserid())
.takeover_userid(weLeaveUserInfoAllocateVo.getTakeoverUserid()) .takeover_userid(weLeaveUserInfoAllocateVo.getTakeoverUserid())
......
...@@ -99,6 +99,7 @@ public class WeUserServiceImpl extends ServiceImpl<WeUserMapper, WeUser> impleme ...@@ -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')") "date_format (create_time,'%Y-%m-%d') >= date_format('" + weUser.getBeginTime() + "','%Y-%m-%d')")
.apply(StringUtils.isNotBlank(weUser.getEndTime()), .apply(StringUtils.isNotBlank(weUser.getEndTime()),
"date_format (create_time,'%Y-%m-%d') <= date_format('" + weUser.getEndTime() + "','%Y-%m-%d')") "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!