提交 26ad2e2c 编写于 作者: wenhao.qin's avatar wenhao.qin

优化判断逻辑 v2

上级 2859ad72
流水线 #43766 已失败 于阶段
...@@ -331,8 +331,8 @@ public class HospitalSaasUserServiceImpl implements HospitalSaasUserService { ...@@ -331,8 +331,8 @@ public class HospitalSaasUserServiceImpl implements HospitalSaasUserService {
resp.setRoles(roleDtos); resp.setRoles(roleDtos);
resp.setRoleIds(roleDtos.stream().map(RoleDto::getId).collect(Collectors.toList())); resp.setRoleIds(roleDtos.stream().map(RoleDto::getId).collect(Collectors.toList()));
resp.setPwdFlag(2); resp.setPwdFlag(2);
AccountInfoEntity accountInfo=accountInfoDetailMapper.selectByPrimaryKey(resp.getAcctId()); AccountInfoEntity accountInfo;
if (null == resp.getAcctId() || null == accountInfo){ if (null == resp.getAcctId() || null == (accountInfo=accountInfoDetailMapper.selectByPrimaryKey(resp.getAcctId()))){
throw new PicaException(PicaResultCode.PARAM_IS_INVALID.code(), "数据有误"); throw new PicaException(PicaResultCode.PARAM_IS_INVALID.code(), "数据有误");
} }
if (StringUtils.isNotBlank(accountInfo.getPassword())) { if (StringUtils.isNotBlank(accountInfo.getPassword())) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册