Commit 4bd8c1c6 by 墨竹

refactor:打印日志

parent 9de14422
...@@ -1305,8 +1305,9 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -1305,8 +1305,9 @@ public class StaffApiServiceImpl implements StaffApiService {
String cacheKey = "hb:clerk:store:" + clerkId + wxEnterpriseId; String cacheKey = "hb:clerk:store:" + clerkId + wxEnterpriseId;
Object cache = RedisUtil.getCache(cacheKey); Object cache = RedisUtil.getCache(cacheKey);
if (cache != null) { if (cache != null) {
logger.info("从缓存中获取通道={}", cacheKey); List<String> storeList = (List<String>) cache;
return (List<String>) cache; logger.info("从缓存中获取通道={},数量:{}", cacheKey,storeList.size());
return storeList;
} }
ClerkDTO clerkDTO = clerkService.getClerkByClerkId(clerkId); ClerkDTO clerkDTO = clerkService.getClerkByClerkId(clerkId);
if (clerkDTO == null) { if (clerkDTO == null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment