科室人员修改

This commit is contained in:
zhangheng 2023-11-16 11:11:54 +08:00
parent 07288359be
commit 0eff1f18c3

View File

@ -111,12 +111,6 @@ public class HospitalPersonInfoServiceImpl implements IHospitalPersonInfoService
return AjaxResult.error("咨询费用不能为0或者负数请重新输入");
}
//创建人 创建时间 科室人员编码
if (StringUtils.equals("2", hospitalPersonInfo.getStatus()) && StringUtils.isBlank(hospitalPersonInfo.getPersonAccount())){
hospitalPersonInfo.setPersonAccount(hospitalPersonInfo.getPersonPhone());
}
if (StringUtils.equals("2", hospitalPersonInfo.getStatus()) && StringUtils.isBlank(hospitalPersonInfo.getPersonPassword())){
hospitalPersonInfo.setPersonPassword("Abc@123");
}
hospitalPersonInfo.setPersonCode(Constants.PERSON_CODE + generateSystemCodeUtil.generateSystemCode(Constants.PERSON_CODE));
hospitalPersonInfo.setCreateTime(LocalDateTime.now());
hospitalPersonInfo.setCreateBy(SecurityUtils.getUsername());
@ -172,12 +166,6 @@ public class HospitalPersonInfoServiceImpl implements IHospitalPersonInfoService
return AjaxResult.error("咨询费用不能为0或者负数请重新输入");
}
//修改人 修改时间
if (StringUtils.equals("2", hospitalPersonInfo.getStatus()) && StringUtils.isBlank(hospitalPersonInfo.getPersonAccount())){
hospitalPersonInfo.setPersonAccount(hospitalPersonInfo.getPersonPhone());
}
if (StringUtils.equals("2", hospitalPersonInfo.getStatus()) && StringUtils.isBlank(hospitalPersonInfo.getPersonPassword())){
hospitalPersonInfo.setPersonPassword("Abc@123");
}
hospitalPersonInfo.setUpdateTime(LocalDateTime.now());
hospitalPersonInfo.setUpdateBy(SecurityUtils.getUsername());
hospitalPersonInfoMapper.updateHospitalPersonInfo(hospitalPersonInfo);