Commit 48037f30 by danmo

管理员获取客户列表报错修改

1 parent af3da079
...@@ -167,13 +167,13 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS ...@@ -167,13 +167,13 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
//从redis中读取数据 //从redis中读取数据
List<WeCustomer> customers = redisCache.getCacheList(WeConstans.WECUSTOMERS_KEY); List<WeCustomer> customers = redisCache.getCacheList(WeConstans.WECUSTOMERS_KEY);
if (CollectionUtils.isEmpty(customers)) { if (CollectionUtils.isEmpty(customers)) {
customers = weCustomerService.selectWeCustomerList(null); WeCustomer weCustomer = new WeCustomer();
weCustomer.setUserIds(staffId);
weCustomer.setDepartmentIds(department);
customers = weCustomerService.selectWeCustomerList(weCustomer);
redisCache.setCacheList(WeConstans.WECUSTOMERS_KEY, customers); redisCache.setCacheList(WeConstans.WECUSTOMERS_KEY, customers);
} }
WeCustomer weCustomer = new WeCustomer(); return customers;
weCustomer.setUserIds(staffId);
weCustomer.setDepartmentIds(department);
return weCustomerService.selectWeCustomerList(weCustomer);
} else { } else {
//按条件查询客户 //按条件查询客户
//通过部门id查询所有的员工 //通过部门id查询所有的员工
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!