医护人员信息修改
This commit is contained in:
parent
64e302d8b9
commit
30f5c87bb1
@ -213,10 +213,12 @@ public class HospitalPersonInfoServiceImpl implements IHospitalPersonInfoService
|
||||
} else {
|
||||
// 修改用户信息
|
||||
SysUser updUser = userList.get(0);
|
||||
int nurseStationUserCount = nurseStationPersonMapper.getNurseStationUserCount(updUser.getPhonenumber());
|
||||
if (!hospitalPersonInfo.getPersonPhone().equals(updUser.getPhonenumber())){
|
||||
int nurseStationUserCount = nurseStationPersonMapper.getNurseStationUserCount(hospitalPersonInfo.getPersonPhone());
|
||||
if (nurseStationUserCount > 0) {
|
||||
throw new ServiceException("您输入的联系电话" + hospitalPersonInfo.getPersonPhone() + "重复!");
|
||||
}
|
||||
}
|
||||
sysUser.setHospitalPersonId(hospitalPersonInfo.getId());
|
||||
updUser.setPassword(SecurityUtils.encryptPassword(hospitalPersonInfo.getPersonPassword()));
|
||||
updUser.setNickName(hospitalPersonInfo.getPersonName());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user