Browse Source

用户缓存 排查下是否存在多个

master
jianjun 4 years ago
parent
commit
17d5d10961
  1. 3
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBaseInfoServiceImpl.java

3
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBaseInfoServiceImpl.java

@ -152,6 +152,9 @@ public class UserBaseInfoServiceImpl extends BaseServiceImpl<UserBaseInfoDao, Us
logger.warn("queryUserBaseInfo return empty,userId:{}", userId);
return null;
}
if (userBaseInfoResultDTOS.size()> 1){
logger.error("queryUserBaseInfoFromCache userId:{} exist more than one record",userId);
}
UserBaseInfoResultDTO userBaseInfoResultDTO = userBaseInfoResultDTOS.get(0);
logger.debug("getUserResiInfoDTO userId:{},result:{}", userId,JSON.toJSONString(userBaseInfoResultDTO));
return userBaseInfoResultDTO;

Loading…
Cancel
Save