瀏覽代碼

文章简介为空处理

8 年之前
父節點
當前提交
4b9a154e60

+ 1 - 2
patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/account/PatientInfoService.java

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

+ 1 - 1
patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/device/PatientDeviceService.java

@ -231,7 +231,7 @@ public class PatientDeviceService extends BaseService {
		filters.put("patient", new SearchFilter("user", Operator.EQ, patientCode));
		filters.put("del", new SearchFilter("del", Operator.EQ, 1));
		filters.put("del", new SearchFilter("del", Operator.EQ, 0));
		if(id > 0){
			filters.put("id", new SearchFilter("id", Operator.LT, id));