|
@ -193,7 +193,7 @@ public class PatientInfoService extends BaseService {
|
|
|
if(!newPassword1.equals(newPassword2)){
|
|
|
throw new Exception("新密码不一致");
|
|
|
}
|
|
|
if(!newPassword1.equals(oldPassword)){
|
|
|
if(newPassword1.equals(oldPassword)){
|
|
|
throw new Exception("新旧密码一致");
|
|
|
}
|
|
|
Patient patient=patientDao.findByCode(patientCode);
|