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

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

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