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

联调修改

上级 25202112
流水线 #42931 已取消 于阶段
...@@ -120,6 +120,16 @@ public class HospitalSaasUserServiceImpl implements HospitalSaasUserService { ...@@ -120,6 +120,16 @@ public class HospitalSaasUserServiceImpl implements HospitalSaasUserService {
insertSaasRole(req, byMobilePhone.getId(), doctorId); insertSaasRole(req, byMobilePhone.getId(), doctorId);
} }
} }
//用户存在,但密码不存在的处理逻辑
if (Objects.nonNull(accountInfoEntity) && StringUtils.isBlank(accountInfoEntity.getPassword())) {
byMobilePhone.setPassword(req.getPassword());
byMobilePhone.setComment(req.getComment());
byMobilePhone.setHospitalId(req.getHospitalId());
accountMapper.updateByIdSelective(byMobilePhone);
if (!Objects.equals(req.getRoleId(), -1)) {
insertSaasRole(req, byMobilePhone.getId(), doctorId);
}
}
} }
return 1; return 1;
} }
......
...@@ -225,6 +225,9 @@ ...@@ -225,6 +225,9 @@
<if test="status != null"> <if test="status != null">
status = #{status,jdbcType=INTEGER}, status = #{status,jdbcType=INTEGER},
</if> </if>
<if test="hospitalId != null">
hospital_id = #{hospitalId,jdbcType=INTEGER},
</if>
<if test="certifyStatus != null"> <if test="certifyStatus != null">
certify_status = #{certifyStatus,jdbcType=INTEGER}, certify_status = #{certifyStatus,jdbcType=INTEGER},
</if> </if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册