Commit ebcd1557 by 孙喜旺

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

1 parent 789abcb8
...@@ -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);
redisCache.setCacheList(WeConstans.WECUSTOMERS_KEY, customers);
}
WeCustomer weCustomer = new WeCustomer(); WeCustomer weCustomer = new WeCustomer();
weCustomer.setUserIds(staffId); weCustomer.setUserIds(staffId);
weCustomer.setDepartmentIds(department); weCustomer.setDepartmentIds(department);
return weCustomerService.selectWeCustomerList(weCustomer); customers = weCustomerService.selectWeCustomerList(weCustomer);
redisCache.setCacheList(WeConstans.WECUSTOMERS_KEY, customers);
}
return customers;
} 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!