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 d6f585de
authored
Mar 24, 2021
by
leejoker
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复全部客户缓存未命中的问题
1 parent
39f97d7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerMessagePushServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerMessagePushServiceImpl.java
View file @
d6f585d
...
@@ -158,7 +158,12 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
...
@@ -158,7 +158,12 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
public
List
<
WeCustomer
>
externalUserIds
(
String
pushRange
,
String
staffId
,
String
department
,
String
tag
)
{
public
List
<
WeCustomer
>
externalUserIds
(
String
pushRange
,
String
staffId
,
String
department
,
String
tag
)
{
if
(
pushRange
.
equals
(
WeConstans
.
SEND_MESSAGE_CUSTOMER_ALL
))
{
if
(
pushRange
.
equals
(
WeConstans
.
SEND_MESSAGE_CUSTOMER_ALL
))
{
//从redis中读取数据
//从redis中读取数据
return
redisCache
.
getCacheList
(
WeConstans
.
WECUSTOMERS_KEY
);
List
<
WeCustomer
>
customers
=
redisCache
.
getCacheList
(
WeConstans
.
WECUSTOMERS_KEY
);
if
(
CollectionUtils
.
isEmpty
(
customers
))
{
customers
=
weCustomerService
.
selectWeCustomerList
(
null
);
redisCache
.
setCacheList
(
WeConstans
.
WECUSTOMERS_KEY
,
customers
);
}
return
customers
;
}
else
{
}
else
{
//按条件查询客户
//按条件查询客户
//通过部门id查询所有的员工
//通过部门id查询所有的员工
...
...
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