提交 b0bf1998 编写于 作者: wangxinxu's avatar wangxinxu

新运营平台修改用户密码

上级 1dcf7935
流水线 #52246 已取消 于阶段
...@@ -164,10 +164,12 @@ public class HospitalSaasUserServiceImpl implements HospitalSaasUserService { ...@@ -164,10 +164,12 @@ public class HospitalSaasUserServiceImpl implements HospitalSaasUserService {
Account account = new Account(); Account account = new Account();
if (StringUtils.isBlank(byMobilePhone.getName())) { if (StringUtils.isBlank(byMobilePhone.getName())) {
account.setName(req.getName()); account.setName(req.getName());
accountInfoEntity.setName(req.getName());
updateNameOrPwd = true; updateNameOrPwd = true;
} }
if (StringUtils.isBlank(byMobilePhone.getPassword()) && StringUtils.isNotBlank(req.getPassword())) { if (StringUtils.isBlank(byMobilePhone.getPassword()) && StringUtils.isNotBlank(req.getPassword())) {
account.setPassword(StringUtils.upperCase(MD5Util.MD5(req.getPassword()))); account.setPassword(StringUtils.upperCase(MD5Util.MD5(req.getPassword())));
accountInfoEntity.setPassword(StringUtils.upperCase(MD5Util.MD5(req.getPassword())));
account.setEntireFlag(3); account.setEntireFlag(3);
updateNameOrPwd = true; updateNameOrPwd = true;
} }
...@@ -176,6 +178,10 @@ public class HospitalSaasUserServiceImpl implements HospitalSaasUserService { ...@@ -176,6 +178,10 @@ public class HospitalSaasUserServiceImpl implements HospitalSaasUserService {
account.setModifyId(picaUser.getId().longValue()); account.setModifyId(picaUser.getId().longValue());
account.setModifyTime(new Date()); account.setModifyTime(new Date());
accountMapper.updateByIdSelective(account); accountMapper.updateByIdSelective(account);
accountInfoEntity.setModifiedId(picaUser.getId());
accountInfoEntity.setModifiedTime(new Date());
accountInfoDetailMapper.updateByPrimaryKeySelective(accountInfoEntity);
} }
//角色 //角色
insertSaasRole(req.getRoleId(), req.getHospitalId().longValue(), byMobilePhone.getId(), byMobilePhone.getId()); insertSaasRole(req.getRoleId(), req.getHospitalId().longValue(), byMobilePhone.getId(), byMobilePhone.getId());
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册