提交 66e73f43 编写于 作者: dong.an's avatar dong.an

刷新用户缓存手机号

上级 c233c3d4
流水线 #16855 已失败 于阶段
in 0 second
...@@ -164,8 +164,9 @@ public class AccountServiceImpl implements AccountService { ...@@ -164,8 +164,9 @@ public class AccountServiceImpl implements AccountService {
//成功返回0,失败返回1 //成功返回0,失败返回1
private int refresh(Map<String, Object> doctorMap) { private int refresh(Map<String, Object> doctorMap) {
String doctorId = doctorMap.get("id").toString(); String doctorId = doctorMap.get("id").toString();
String hospitalId = doctorMap.get("hospital_id") == null ? StringUtils.EMPTY : doctorMap.get("hospital_id").toString(); //String hospitalId = doctorMap.get("hospital_id") == null ? StringUtils.EMPTY : doctorMap.get("hospital_id").toString();
String hospital = doctorMap.get("hospital") == null ? StringUtils.EMPTY : doctorMap.get("hospital").toString(); //String hospital = doctorMap.get("hospital") == null ? StringUtils.EMPTY : doctorMap.get("hospital").toString();
String mobile = doctorMap.get("mobile_phone") == null ? StringUtils.EMPTY : doctorMap.get("mobile_phone").toString();
String key = KEY_PREFIX + doctorId; String key = KEY_PREFIX + doctorId;
try { try {
...@@ -173,8 +174,9 @@ public class AccountServiceImpl implements AccountService { ...@@ -173,8 +174,9 @@ public class AccountServiceImpl implements AccountService {
if (StringUtils.isBlank(cacheId)) { if (StringUtils.isBlank(cacheId)) {
return 0; //未找到用户缓存数据,不做更新 return 0; //未找到用户缓存数据,不做更新
} }
cacheClient.hset(key, "hospital_id", StringUtils.isEmpty(hospitalId) ? "0" : hospitalId); //cacheClient.hset(key, "hospital_id", StringUtils.isEmpty(hospitalId) ? "0" : hospitalId);
cacheClient.hset(key, "hospital", hospital); //cacheClient.hset(key, "hospital", hospital);
cacheClient.hset(key, "mobile", mobile);
return 0; return 0;
} catch (Exception ex) { } catch (Exception ex) {
return 1; return 1;
......
...@@ -308,7 +308,7 @@ ...@@ -308,7 +308,7 @@
</select> </select>
<select id="getHospitalInfoByPage" resultType="map"> <select id="getHospitalInfoByPage" resultType="map">
select id, hospital_id, hospital select id, hospital_id, hospital, mobile_phone
from p_doctor from p_doctor
where delete_flag = 1 where delete_flag = 1
<if test="id != null"> <if test="id != null">
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册