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 20a4dab7
authored
Dec 23, 2021
by
linkwechat8856@163.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
离职分配相关bug
1 parent
0b70e5a9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
7 deletions
linkwe-common/src/main/java/com/linkwechat/common/constant/WeConstans.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/client/WeUserClient.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/interceptor/WeCommonAccessTokenInterceptor.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeUserServiceImpl.java
linkwe-common/src/main/java/com/linkwechat/common/constant/WeConstans.java
View file @
20a4dab
...
@@ -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
;
/**
/**
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/client/WeUserClient.java
View file @
20a4dab
...
@@ -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
=
We
Common
AccessTokenInterceptor
.
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
);
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/interceptor/WeCommonAccessTokenInterceptor.java
View file @
20a4dab
...
@@ -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
**/
**/
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
View file @
20a4dab
...
@@ -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
())
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeUserServiceImpl.java
View file @
20a4dab
...
@@ -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
)
);
);
}
}
...
...
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