|
@ -95,11 +95,9 @@ public class PatientInfoService extends BaseService {
|
|
*/
|
|
*/
|
|
public int changeMobile(String patient, String mobile, String captcha, int type) throws Exception {
|
|
public int changeMobile(String patient, String mobile, String captcha, int type) throws Exception {
|
|
Patient p = patientDao.findByCode(patient);
|
|
Patient p = patientDao.findByCode(patient);
|
|
|
|
|
|
if (p == null) {
|
|
if (p == null) {
|
|
return -1;
|
|
return -1;
|
|
}
|
|
}
|
|
|
|
|
|
//List<Patient> patients = patientDao.findByMobile(mobile);
|
|
//List<Patient> patients = patientDao.findByMobile(mobile);
|
|
//更新的时候不校验手机是否存在
|
|
//更新的时候不校验手机是否存在
|
|
//if (pMobile != null && !pMobile.getCode().equals(patient)) {
|
|
//if (pMobile != null && !pMobile.getCode().equals(patient)) {
|
|
@ -114,6 +112,7 @@ public class PatientInfoService extends BaseService {
|
|
//}
|
|
//}
|
|
|
|
|
|
p.setMobile(mobile);
|
|
p.setMobile(mobile);
|
|
|
|
patientDao.save(p);
|
|
signFamilyDao.updatePatientMobile(p.getCode(), mobile);
|
|
signFamilyDao.updatePatientMobile(p.getCode(), mobile);
|
|
|
|
|
|
return 1;
|
|
return 1;
|