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

20191224 完善注册用户来源

上级 16c4ff37
...@@ -175,7 +175,7 @@ public class AccountServiceImpl implements AccountService { ...@@ -175,7 +175,7 @@ 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 mobile = doctorMap.get("mobile_phone") == null ? StringUtils.EMPTY : doctorMap.get("mobile_phone").toString();
...@@ -192,8 +192,6 @@ public class AccountServiceImpl implements AccountService { ...@@ -192,8 +192,6 @@ public class AccountServiceImpl implements AccountService {
String town_name = doctorMap.get("town_name") == null ? StringUtils.EMPTY : doctorMap.get("town_name").toString(); String town_name = doctorMap.get("town_name") == null ? StringUtils.EMPTY : doctorMap.get("town_name").toString();
String title = doctorMap.get("title") == null ? StringUtils.EMPTY : doctorMap.get("title").toString(); String title = doctorMap.get("title") == null ? StringUtils.EMPTY : doctorMap.get("title").toString();
String title_id = doctorMap.get("title_id") == null ? StringUtils.EMPTY : doctorMap.get("title_id").toString(); String title_id = doctorMap.get("title_id") == null ? StringUtils.EMPTY : doctorMap.get("title_id").toString();
*/
String name = doctorMap.get("name") == null ? StringUtils.EMPTY : doctorMap.get("name").toString(); String name = doctorMap.get("name") == null ? StringUtils.EMPTY : doctorMap.get("name").toString();
String key = KEY_PREFIX + doctorId; String key = KEY_PREFIX + doctorId;
try { try {
...@@ -201,7 +199,6 @@ public class AccountServiceImpl implements AccountService { ...@@ -201,7 +199,6 @@ 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, "province_name", province_name); cacheClient.hset(key, "province_name", province_name);
...@@ -218,8 +215,6 @@ public class AccountServiceImpl implements AccountService { ...@@ -218,8 +215,6 @@ public class AccountServiceImpl implements AccountService {
cacheClient.hset(key, "email", email); cacheClient.hset(key, "email", email);
cacheClient.hset(key, "title_id", title_id); cacheClient.hset(key, "title_id", title_id);
cacheClient.hset(key, "title", title); cacheClient.hset(key, "title", title);
*/
cacheClient.hset(key, "name", name); cacheClient.hset(key, "name", name);
return 0; return 0;
} catch (Exception ex) { } catch (Exception ex) {
......
...@@ -133,6 +133,7 @@ public class RegisterServiceImpl implements RegisterService { ...@@ -133,6 +133,7 @@ public class RegisterServiceImpl implements RegisterService {
account.setModifyTime(currentTime); account.setModifyTime(currentTime);
account.setFirstLoginTime(currentTime); account.setFirstLoginTime(currentTime);
account.setLastLoginTime(currentTime); account.setLastLoginTime(currentTime);
account.setRegisterSource(sourceType);
account.setPassword(password); account.setPassword(password);
if (!StringUtils.isBlank(password)){ if (!StringUtils.isBlank(password)){
account.setEntireFlag(3); account.setEntireFlag(3);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册