提交 c98f22c1 编写于 作者: rushui.chen's avatar rushui.chen

20191112 测试刷redis中数据

上级 aeaa07a1
流水线 #16964 已失败 于阶段
in 0 second
...@@ -8,6 +8,7 @@ import com.pica.cloud.account.account.server.service.AccountService; ...@@ -8,6 +8,7 @@ import com.pica.cloud.account.account.server.service.AccountService;
import com.pica.cloud.foundation.encryption.common.constants.EncryptConstants; import com.pica.cloud.foundation.encryption.common.constants.EncryptConstants;
import com.pica.cloud.foundation.encryption.util.EncryptUtils; import com.pica.cloud.foundation.encryption.util.EncryptUtils;
import com.pica.cloud.foundation.redis.ICacheClient; import com.pica.cloud.foundation.redis.ICacheClient;
import com.pica.cloud.foundation.utils.entity.PicaUser;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
...@@ -18,10 +19,7 @@ import org.springframework.beans.factory.annotation.Value; ...@@ -18,10 +19,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import java.util.Date; import java.util.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/** /**
* @author andong * @author andong
...@@ -124,7 +122,23 @@ public class AccountServiceImpl implements AccountService { ...@@ -124,7 +122,23 @@ public class AccountServiceImpl implements AccountService {
map.put("id", cacheClient.hget(key, "id")); map.put("id", cacheClient.hget(key, "id"));
map.put("hospital_id", cacheClient.hget(key, "hospital_id")); map.put("hospital_id", cacheClient.hget(key, "hospital_id"));
map.put("hospital", cacheClient.hget(key, "hospital")); map.put("hospital", cacheClient.hget(key, "hospital"));
// Map<String, String> result = cacheClient.hgetall(key);
// Iterator<Map.Entry<String, String>> iterator = result.entrySet().iterator();
// while(iterator.hasNext()){
// Map.Entry<String, String> next = iterator.next();
// String key1 = next.getKey();
// String value = next.getValue();
// logger.info("更新用户缓存信息已完成数量:{}", key1 + "------>"+value);
// }
// PicaUser picaUser = cacheClient.getToken("F64279B337EA4AE3965853A7CCFDF5A3", PicaUser.class);
// logger.info("更新用户缓存信息已完成数量:", picaUser.toString());
return map; return map;
} }
@Override @Override
......
spring.profiles.active=uat spring.profiles.active=dev
\ No newline at end of file \ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册