科室人员修改
This commit is contained in:
parent
07288359be
commit
0eff1f18c3
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user