提交 5e21ff61 编写于 作者:  Peijun.zhao's avatar Peijun.zhao

新注册用户更新完善信息-只更新名字

上级 8956df6e
流水线 #33481 已失败 于阶段
in 0 second
......@@ -95,24 +95,26 @@ public class DoctorServiceImpl implements DoctorService {
@Override
public int registerWelcome(DoctorReq doctorReq) {
logger.info("registerWelcome req:{}",JSONObject.toJSONString(doctorReq));
logger.info("registerWelcome req:{}", JSONObject.toJSONString(doctorReq));
Doctor doctor = doctorMapper.selectByPrimaryKey(doctorReq.getId());
if (null == doctor) {
throw new PicaWarnException(AccountExceptionEnum.PICA_PARAMS_ERROR.getCode(),
AccountExceptionEnum.PICA_PARAMS_ERROR.getMessage());
}
if(StringUtil.isNotNull(doctorReq.getDepartment())){
/*if(StringUtil.isNotNull(doctorReq.getDepartment())){
doctor.setDepartment(doctorReq.getDepartment());
}
if(StringUtil.isNotNull(doctorReq.getTitle())){
doctor.setTitle(doctorReq.getTitle());
}
if(StringUtil.isNotNull(doctorReq.getName())){
}*/
if (StringUtil.isNotNull(doctorReq.getName())) {
doctor.setName(doctorReq.getName());
doctor.setModifyTime(new Date());
doctor.setModifyId(doctorReq.getId());
return doctorMapper.updateByPrimaryKeySelective(doctor);
}
doctor.setModifyTime(new Date());
doctor.setModifyId(doctorReq.getId());
return doctorMapper.updateByPrimaryKeySelective(doctor);
return 0;
}
@Transactional
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册