|
@ -101,7 +101,7 @@ public class RedisKeys { |
|
|
* epmet:sys:security:user:token字符串 |
|
|
* epmet:sys:security:user:token字符串 |
|
|
*/ |
|
|
*/ |
|
|
public static String getCpUserKey(String app, String client, String userId) { |
|
|
public static String getCpUserKey(String app, String client, String userId) { |
|
|
return rootPrefix.concat("sys:security:user:").concat(app).concat(":").concat(client).concat(":").concat(userId); |
|
|
return rootPrefix.concat("sys:security:user:").concat(app).concat(StrConstant.COLON).concat(client).concat(StrConstant.COLON).concat(userId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -200,7 +200,7 @@ public class RedisKeys { |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
public static String getRoleOpeScopesKey(String roleId, String opeKey) { |
|
|
public static String getRoleOpeScopesKey(String roleId, String opeKey) { |
|
|
return rootPrefix.concat("gov:access:role:opescopes:").concat(roleId).concat(":").concat(opeKey); |
|
|
return rootPrefix.concat("gov:access:role:opescopes:").concat(roleId).concat(StrConstant.COLON).concat(opeKey); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -338,7 +338,7 @@ public class RedisKeys { |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
public static String getCustomerStatsCalFlag(String customerId) { |
|
|
public static String getCustomerStatsCalFlag(String customerId) { |
|
|
return getCustomerStatsCalKeyPrefix().concat(":").concat(customerId); |
|
|
return getCustomerStatsCalKeyPrefix().concat(StrConstant.COLON).concat(customerId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -364,7 +364,7 @@ public class RedisKeys { |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
public static String getCustomerFootbarKey(String customerId, String appType) { |
|
|
public static String getCustomerFootbarKey(String customerId, String appType) { |
|
|
return rootPrefix.concat("footbar").concat(":").concat(customerId).concat(":").concat(appType); |
|
|
return rootPrefix.concat("footbar").concat(StrConstant.COLON).concat(customerId).concat(StrConstant.COLON).concat(appType); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -397,7 +397,7 @@ public class RedisKeys { |
|
|
* @date 2020.11.05 13:34 |
|
|
* @date 2020.11.05 13:34 |
|
|
*/ |
|
|
*/ |
|
|
public static String getResiUserBadgeKey(String customerId, String userId) { |
|
|
public static String getResiUserBadgeKey(String customerId, String userId) { |
|
|
return rootPrefix.concat("badge:user:").concat(customerId).concat(":").concat(StringUtils.isBlank(userId) ? "*" : userId); |
|
|
return rootPrefix.concat("badge:user:").concat(customerId).concat(StrConstant.COLON).concat(StringUtils.isBlank(userId) ? "*" : userId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -483,7 +483,7 @@ public class RedisKeys { |
|
|
**/ |
|
|
**/ |
|
|
public static String getGroupMsgReadKey(String source, String groupId, String sourceId) { |
|
|
public static String getGroupMsgReadKey(String source, String groupId, String sourceId) { |
|
|
String currentMonth= DateUtils.getBeforeNMonth(NumConstant.ZERO); |
|
|
String currentMonth= DateUtils.getBeforeNMonth(NumConstant.ZERO); |
|
|
return "groupread:".concat(currentMonth).concat(":").concat(source).concat(":").concat(groupId).concat(":").concat(sourceId); |
|
|
return "groupread:".concat(currentMonth).concat(StrConstant.COLON).concat(source).concat(StrConstant.COLON).concat(groupId).concat(StrConstant.COLON).concat(sourceId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -497,7 +497,7 @@ public class RedisKeys { |
|
|
**/ |
|
|
**/ |
|
|
public static String getGroupMsgShouldReadUser(String source, String groupId, String sourceId) { |
|
|
public static String getGroupMsgShouldReadUser(String source, String groupId, String sourceId) { |
|
|
String currentMonth= DateUtils.getBeforeNMonth(NumConstant.ZERO); |
|
|
String currentMonth= DateUtils.getBeforeNMonth(NumConstant.ZERO); |
|
|
return "groupread:user:".concat(currentMonth).concat(":").concat(source).concat(":").concat(groupId).concat(":").concat(sourceId); |
|
|
return "groupread:user:".concat(currentMonth).concat(StrConstant.COLON).concat(source).concat(StrConstant.COLON).concat(groupId).concat(StrConstant.COLON).concat(sourceId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -560,7 +560,7 @@ public class RedisKeys { |
|
|
* @date 2021.09.23 17:38:37 |
|
|
* @date 2021.09.23 17:38:37 |
|
|
*/ |
|
|
*/ |
|
|
public static String getQuestionnaireAccessKey(String userId, String qKey) { |
|
|
public static String getQuestionnaireAccessKey(String userId, String qKey) { |
|
|
return rootPrefix.concat("questionnaire:accesskey:").concat(userId).concat(":").concat(qKey); |
|
|
return rootPrefix.concat("questionnaire:accesskey:").concat(userId).concat(StrConstant.COLON).concat(qKey); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -594,7 +594,7 @@ public class RedisKeys { |
|
|
* @date 2021.10.25 17:49:43 |
|
|
* @date 2021.10.25 17:49:43 |
|
|
*/ |
|
|
*/ |
|
|
public static String loginTicket(String app, String ticket) { |
|
|
public static String loginTicket(String app, String ticket) { |
|
|
return rootPrefix.concat("sys:security:ticket:").concat(app).concat(":").concat(ticket); |
|
|
return rootPrefix.concat("sys:security:ticket:").concat(app).concat(StrConstant.COLON).concat(ticket); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -649,7 +649,7 @@ public class RedisKeys { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static String getHouseInfoCacheKey(String houseId,String customerId){ |
|
|
public static String getHouseInfoCacheKey(String houseId,String customerId){ |
|
|
return rootPrefix.concat("house:").concat(customerId).concat(":").concat(houseId); |
|
|
return rootPrefix.concat("house:").concat(customerId).concat(StrConstant.COLON).concat(houseId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -671,7 +671,7 @@ public class RedisKeys { |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
public static String icResiImportTypeKey(String importTag, String type) { |
|
|
public static String icResiImportTypeKey(String importTag, String type) { |
|
|
return icResiImportBaseKey(importTag).concat(":").concat(type); |
|
|
return icResiImportBaseKey(importTag).concat(StrConstant.COLON).concat(type); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -682,7 +682,7 @@ public class RedisKeys { |
|
|
* @return |
|
|
* @return |
|
|
*/ |
|
|
*/ |
|
|
public static String icResiImportResiCategoryKey(String importTag, String type, String resiId) { |
|
|
public static String icResiImportResiCategoryKey(String importTag, String type, String resiId) { |
|
|
return icResiImportTypeKey(importTag, type).concat(":").concat(resiId); |
|
|
return icResiImportTypeKey(importTag, type).concat(StrConstant.COLON).concat(resiId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -693,7 +693,7 @@ public class RedisKeys { |
|
|
* @date 2022/2/14 9:38 上午 |
|
|
* @date 2022/2/14 9:38 上午 |
|
|
*/ |
|
|
*/ |
|
|
public static String getTemporaryHouseInfoCacheKey(String customerId,String userId){ |
|
|
public static String getTemporaryHouseInfoCacheKey(String customerId,String userId){ |
|
|
return rootPrefix.concat("temporary:").concat("temporaryHouse:").concat(customerId).concat(":").concat(userId); |
|
|
return rootPrefix.concat("temporary:").concat("temporaryHouse:").concat(customerId).concat(StrConstant.COLON).concat(userId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -704,7 +704,7 @@ public class RedisKeys { |
|
|
* @date 2022/2/14 9:38 上午 |
|
|
* @date 2022/2/14 9:38 上午 |
|
|
*/ |
|
|
*/ |
|
|
public static String getTemporaryGridInfoCacheKey(String customerId,String userId){ |
|
|
public static String getTemporaryGridInfoCacheKey(String customerId,String userId){ |
|
|
return rootPrefix.concat("temporary:").concat("temporaryGrid:").concat(customerId).concat(":").concat(userId); |
|
|
return rootPrefix.concat("temporary:").concat("temporaryGrid:").concat(customerId).concat(StrConstant.COLON).concat(userId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -715,7 +715,7 @@ public class RedisKeys { |
|
|
* @date 2022/2/14 9:39 上午 |
|
|
* @date 2022/2/14 9:39 上午 |
|
|
*/ |
|
|
*/ |
|
|
public static String getTemporaryNeighborHoodInfoCacheKey(String customerId,String userId){ |
|
|
public static String getTemporaryNeighborHoodInfoCacheKey(String customerId,String userId){ |
|
|
return rootPrefix.concat("temporary:").concat("temporaryNeighborHood:").concat(customerId).concat(":").concat(userId); |
|
|
return rootPrefix.concat("temporary:").concat("temporaryNeighborHood:").concat(customerId).concat(StrConstant.COLON).concat(userId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -726,7 +726,7 @@ public class RedisKeys { |
|
|
* @date 2022/2/14 9:39 上午 |
|
|
* @date 2022/2/14 9:39 上午 |
|
|
*/ |
|
|
*/ |
|
|
public static String getTemporaryBuildingInfoCacheKey(String customerId,String userId){ |
|
|
public static String getTemporaryBuildingInfoCacheKey(String customerId,String userId){ |
|
|
return rootPrefix.concat("temporary:").concat("temporaryBuilding:").concat(customerId).concat(":").concat(userId); |
|
|
return rootPrefix.concat("temporary:").concat("temporaryBuilding:").concat(customerId).concat(StrConstant.COLON).concat(userId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -737,15 +737,15 @@ public class RedisKeys { |
|
|
* @date 2022/2/14 1:54 下午 |
|
|
* @date 2022/2/14 1:54 下午 |
|
|
*/ |
|
|
*/ |
|
|
public static String getTemporaryBuildingUnitInfoCacheKey(String customerId,String userId){ |
|
|
public static String getTemporaryBuildingUnitInfoCacheKey(String customerId,String userId){ |
|
|
return rootPrefix.concat("temporary:").concat("temporaryBuildingUnit:").concat(customerId).concat(":").concat(userId); |
|
|
return rootPrefix.concat("temporary:").concat("temporaryBuildingUnit:").concat(customerId).concat(StrConstant.COLON).concat(userId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static String getTemporaryImportResultCacheKey(String customerId,String userId){ |
|
|
public static String getTemporaryImportResultCacheKey(String customerId,String userId){ |
|
|
return rootPrefix.concat("temporary:").concat("temporaryResult:").concat(customerId).concat(":").concat(userId); |
|
|
return rootPrefix.concat("temporary:").concat("temporaryResult:").concat(customerId).concat(StrConstant.COLON).concat(userId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static String getCustomerMenuList(String customerId, Integer type, String tableName) { |
|
|
public static String getCustomerMenuList(String customerId, Integer type, String tableName) { |
|
|
return getCustomerMenuListPrefix().concat("type:").concat(type.toString()).concat(":tableName:").concat(tableName).concat(customerId); |
|
|
return getCustomerMenuListPrefix().concat("type:").concat(type.toString()).concat(":tableName:").concat(tableName).concat(StrConstant.COLON).concat(customerId); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|