Browse Source

修改redis key

master
jianjun 4 years ago
parent
commit
6d4fd0918e
  1. 2
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/redis/RedisKeys.java
  2. 2
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/redis/common/CustomerStaffRedis.java

2
epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/redis/RedisKeys.java

@ -498,6 +498,6 @@ public class RedisKeys {
* @return
*/
public static String getCustomerStaffInfoKey(String customerId, String staffId) {
return rootPrefix.concat(customerId).concat(StrConstant.COLON).concat(staffId);
return rootPrefix.concat("gov:staff").concat(customerId).concat(StrConstant.COLON).concat(staffId);
}
}

2
epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/redis/common/CustomerStaffRedis.java

@ -14,7 +14,6 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.jetbrains.annotations.Nullable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
import java.util.Map;
@ -26,7 +25,6 @@ import java.util.Map;
* @since v1.0.0 2020-04-22
*/
@Slf4j
@Component
public class CustomerStaffRedis {
@Autowired
private RedisUtils redisUtils;

Loading…
Cancel
Save