fix:redis 执行异常
This commit is contained in:
@@ -257,11 +257,15 @@ public class WalletHttpClientRest {
|
||||
});
|
||||
//门店映射
|
||||
if (map.containsKey(STORE_ID)){
|
||||
String key = RedisConstant.STORE_ID_MAPPING;
|
||||
String key = RedisConstant.STORE_ID_MAPPING;
|
||||
String storeId = (String) map.get(STORE_ID);
|
||||
String storeIdMapping = redisUtilPool.hashGet(key, storeId);
|
||||
if (StringUtil.isNotEmpty(storeIdMapping)){
|
||||
map.put(STORE_ID,storeIdMapping);
|
||||
try {
|
||||
String storeIdMapping = redisUtilPool.hashGet(key, storeId);
|
||||
if (StringUtil.isNotEmpty(storeIdMapping)){
|
||||
map.put(STORE_ID, storeIdMapping);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.error("Redis执行异常,key: {}, storeId: {}", key, storeId, e);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
|
||||
Reference in New Issue
Block a user