|  | @ -111,12 +111,25 @@ public class WlyyFamilyMemberService extends BaseJpaService<WlyyPatientFamilyMem
 | 
												
													
														
															|  |                 if(basePatientDO==null){
 |  |                 if(basePatientDO==null){
 | 
												
													
														
															|  |                     basePatientDO = new BasePatientDO();
 |  |                     basePatientDO = new BasePatientDO();
 | 
												
													
														
															|  |                 }
 |  |                 }
 | 
												
													
														
															|  |                 basePatientDO.setMobile(phoneNum);
 |  | 
 | 
												
													
														
															|  | 
 |  |                 //判断手机号是否已经存在
 | 
												
													
														
															|  | 
 |  |                 List<BasePatientDO> pList = basePatientDao.findByMobileAndDel(phoneNum,"1");
 | 
												
													
														
															|  | 
 |  |                 if(pList.size()==0){
 | 
												
													
														
															|  | 
 |  |                     //手机号未被绑定
 | 
												
													
														
															|  | 
 |  |                     basePatientDO.setMobile(phoneNum);
 | 
												
													
														
															|  | 
 |  |                 }
 | 
												
													
														
															|  | 
 |  |                 basePatientDO.setMobileRemarks(phoneNum);
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
													
														
															|  |         }else{
 |  |         }else{
 | 
												
													
														
															|  |             if(basePatientDO==null){
 |  |             if(basePatientDO==null){
 | 
												
													
														
															|  |                 basePatientDO = new BasePatientDO();
 |  |                 basePatientDO = new BasePatientDO();
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
													
														
															|  | 
 |  |             //判断手机号是否已经存在
 | 
												
													
														
															|  | 
 |  |             List<BasePatientDO> pList = basePatientDao.findByMobileAndDel(phoneNum,"1");
 | 
												
													
														
															|  | 
 |  |             if(pList.size()==0){
 | 
												
													
														
															|  | 
 |  |                 //手机号未被绑定
 | 
												
													
														
															|  | 
 |  |                 basePatientDO.setMobile(phoneNum);
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |             basePatientDO.setMobileRemarks(phoneNum);
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         Map<String,Object> resultMap = new HashMap<>();
 |  |         Map<String,Object> resultMap = new HashMap<>();
 | 
												
													
														
															|  |         PatientMappingDO patientMappingDO = patientMappingDao.findByIdcard(idCard);
 |  |         PatientMappingDO patientMappingDO = patientMappingDao.findByIdcard(idCard);
 | 
												
											
												
													
														
															|  | @ -284,7 +297,7 @@ public class WlyyFamilyMemberService extends BaseJpaService<WlyyPatientFamilyMem
 | 
												
													
														
															|  |                             mixEnvelop.setMessage("您所添加的家属的名称有误,无法发送验证码");
 |  |                             mixEnvelop.setMessage("您所添加的家属的名称有误,无法发送验证码");
 | 
												
													
														
															|  |                             return mixEnvelop;
 |  |                             return mixEnvelop;
 | 
												
													
														
															|  |                         }
 |  |                         }
 | 
												
													
														
															|  |                         basePatientDO.setMobile(Next_Of_Kin_Phone);
 |  | 
 | 
												
													
														
															|  | 
 |  | //                        basePatientDO.setMobile(Next_Of_Kin_Phone);
 | 
												
													
														
															|  |                         basePatientDO.setPhone(Next_Of_Kin_Phone);
 |  |                         basePatientDO.setPhone(Next_Of_Kin_Phone);
 | 
												
													
														
															|  |                         basePatientDO.setName(Pat_name);
 |  |                         basePatientDO.setName(Pat_name);
 | 
												
													
														
															|  |                         basePatientDO.setBirthday(IdCardUtil.getBirthdayForIdcard(idCard));
 |  |                         basePatientDO.setBirthday(IdCardUtil.getBirthdayForIdcard(idCard));
 | 
												
											
												
													
														
															|  | @ -1017,7 +1030,7 @@ public class WlyyFamilyMemberService extends BaseJpaService<WlyyPatientFamilyMem
 | 
												
													
														
															|  |         }else {
 |  |         }else {
 | 
												
													
														
															|  |             String sql = "select t.id as \"id\",t.card_type as \"cardType\", " +
 |  |             String sql = "select t.id as \"id\",t.card_type as \"cardType\", " +
 | 
												
													
														
															|  |                     "t.patient as \"patient\",b.name as \"name\",b.sex as \"sex\","+
 |  |                     "t.patient as \"patient\",b.name as \"name\",b.sex as \"sex\","+
 | 
												
													
														
															|  |                     "b.birthday as\"birthday\",b.idcard as \"idcard\",b.mobile as \"mobile\"," +
 |  | 
 | 
												
													
														
															|  | 
 |  |                     "b.birthday as\"birthday\",b.idcard as \"idcard\",if(b.mobile is null,b.mobile_remarks,b.mobile) as \"mobile\"," +
 | 
												
													
														
															|  |                     "t.family_member as \"familyMember\",c.relation_name as \"relationName\",t.medicare as \"medicare\" "+
 |  |                     "t.family_member as \"familyMember\",c.relation_name as \"relationName\",t.medicare as \"medicare\" "+
 | 
												
													
														
															|  |                     " from wlyy_patient_family_member t left join base_patient b" +
 |  |                     " from wlyy_patient_family_member t left join base_patient b" +
 | 
												
													
														
															|  |                     " on t.family_member = b.id left join base_patient_member_dict c on t.family_relation=c.id where 1=1 and t.is_del=1 ";
 |  |                     " on t.family_member = b.id left join base_patient_member_dict c on t.family_relation=c.id where 1=1 and t.is_del=1 ";
 |