|
@ -65,6 +65,10 @@ public class CustomerStaffRedis { |
|
|
* @remark 此方法仅用于 获取某个工作人员的信息,不用于获取客户下所有工作人员信息 |
|
|
* @remark 此方法仅用于 获取某个工作人员的信息,不用于获取客户下所有工作人员信息 |
|
|
*/ |
|
|
*/ |
|
|
public static CustomerStaffInfoCacheResult getStaffInfo(String customerId, String staffId) { |
|
|
public static CustomerStaffInfoCacheResult getStaffInfo(String customerId, String staffId) { |
|
|
|
|
|
if (StringUtils.isBlank(customerId) || StringUtils.isBlank(staffId)){ |
|
|
|
|
|
log.warn("getStaffInfo param is blank,customerId:{},staffId:{}",customerId,staffId); |
|
|
|
|
|
return null; |
|
|
|
|
|
} |
|
|
String key = RedisKeys.getCustomerStaffInfoKey(customerId, staffId); |
|
|
String key = RedisKeys.getCustomerStaffInfoKey(customerId, staffId); |
|
|
Map<String, Object> roleMap = customerStaffRedis.redisUtils.hGetAll(key); |
|
|
Map<String, Object> roleMap = customerStaffRedis.redisUtils.hGetAll(key); |
|
|
if (!CollectionUtils.isEmpty(roleMap)) { |
|
|
if (!CollectionUtils.isEmpty(roleMap)) { |
|
|