Commit 678cf2e8 by chongli

修改用户手机号记录原手机号

parent b4170e2a
......@@ -124,11 +124,12 @@ public class UserExtService extends GenericService<UserExtDao, UserExt, Integer,
/*a) 新手机号码未注册, usr_basicuser表的mobilePhone字段 , bsc_userext表中mobilePhone,bindedMobilePhone 数据更改为新的手机号码, 并且提示变更之后旧手机号码将无法登录
b) 新手机号码已注册,直接对调手机号
*/
BasicUser basicUser_oldPhone = basicUserDao.getBasicUserByUid(bean.getUid());
UserPhoneChangeLog userPhoneChangeLog = new UserPhoneChangeLog();
userPhoneChangeLog.setChangeTime(new Date());
userPhoneChangeLog.setUid(bean.getUid());
userPhoneChangeLog.setOperateUid(opertorUid);
userPhoneChangeLog.setPhone(bean.getMobilePhone());
userPhoneChangeLog.setPhone(basicUser_oldPhone.getMobilePhone());
UserExt userExt_newphone = userExtDao.GetUserExtInfoByPhone(bean.getMobilePhone());
if(userExt_newphone==null){
......@@ -141,7 +142,7 @@ public class UserExtService extends GenericService<UserExtDao, UserExt, Integer,
//保存修改手机号日志
userPhoneChangeLogDao.save(userPhoneChangeLog);
//查询用户基础手机号和扩展手机号
BasicUser basicUser_oldPhone = basicUserDao.getBasicUserByUid(bean.getUid());
UserExt userExtOld = userExtDao.getByUid(bean.getUid());
//换原账号的手机号为新手机号
basicUserDao.updateMobilePhoneByUid(basicUser_oldPhone.getUid(),userExt_newphone.getBindedMobilePhone());
......
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 sign in to comment