| 
					
				 | 
			
			
				@ -91,6 +91,18 @@ public class WlyyFamilyMemberService extends BaseJpaService<WlyyPatientFamilyMem 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String birth = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String yktFamilyId = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        int sex=3; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<BasePatientDO> list = basePatientDao.findByMobile(phoneNum); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (list!=null&&list.size()>0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (basePatientDO.getMobile().equalsIgnoreCase(phoneNum)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                mixEnvelop.setStatus(408); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                mixEnvelop.setMessage("您所添加的家属手机号已被他人占用"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                return  mixEnvelop; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            basePatientDO.setMobile(phoneNum); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //获取his家属数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        JSONArray jsonArray = new JSONArray(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if("xm_ykyy_wx".equalsIgnoreCase(wxId)){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -264,9 +276,7 @@ public class WlyyFamilyMemberService extends BaseJpaService<WlyyPatientFamilyMem 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        result.setPatient(patientId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        result.setCardNo(idCard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        result.setCardType(cardType); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //保存到base_patient表中 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //basePatientDO.setMobile(phoneNum); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //保存到base_patient表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        basePatientDO.setName(familyName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        basePatientDO.setIdcard(idCard); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        basePatientDO.setRegister("0"); 
			 |