|  | @ -73,7 +73,16 @@ public class WlyyFamilyMemberService extends BaseJpaService<WlyyPatientFamilyMem
 | 
	
		
			
				|  |  |         MixEnvelop mixEnvelop = new MixEnvelop();
 | 
	
		
			
				|  |  |         try{
 | 
	
		
			
				|  |  |         BasePatientMemberDictDO basePatientMemberDictDO = basePatientMemberDictDao.findOne(dictId);
 | 
	
		
			
				|  |  |         BasePatientDO basePatientDO = basePatientDao.findByIdcard(idCard);
 | 
	
		
			
				|  |  |         BasePatientDO basePatientDO = null;
 | 
	
		
			
				|  |  |         if ("xm_ykyy_wx".equalsIgnoreCase(wxId)){
 | 
	
		
			
				|  |  |             List<BasePatientDO> listpatients=basePatientDao.findByMobileAndDel(phoneNum,"1");
 | 
	
		
			
				|  |  |             if (listpatients!=null&&listpatients.size()>0){
 | 
	
		
			
				|  |  |                 basePatientDO=listpatients.get(0);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }else {
 | 
	
		
			
				|  |  |             basePatientDO= basePatientDao.findByIdcard(idCard);
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         List<BasePatientDO> list = basePatientDao.findByMobile(phoneNum);
 | 
	
		
			
				|  |  |         if ("xm_xzzx_wx".equalsIgnoreCase(wxId)){
 | 
	
		
			
				|  |  |             if (list!=null&&list.size()>0&&basePatientDO!=null){
 | 
	
	
		
			
				|  | @ -380,9 +389,14 @@ public class WlyyFamilyMemberService extends BaseJpaService<WlyyPatientFamilyMem
 | 
	
		
			
				|  |  |                             System.out.println("==="+jsonArray.get(i).toString());
 | 
	
		
			
				|  |  |                             if (StringUtils.isNotEmpty(jsonObject1.getString("IDCARD"))){
 | 
	
		
			
				|  |  |                                 System.out.println("同步的身份证号:"+jsonObject1.getString("IDCARD"));
 | 
	
		
			
				|  |  |                                 BasePatientDO patientDO = basePatientDao.findByIdcardAndDel(jsonObject1.getString("IDCARD"),"1");
 | 
	
		
			
				|  |  |                                 if (patientDO==null){
 | 
	
		
			
				|  |  |                                     patientDO = new BasePatientDO();
 | 
	
		
			
				|  |  |                                 BasePatientDO patientDO = null;
 | 
	
		
			
				|  |  |                                 if ("xm_ykyy_wx".equalsIgnoreCase(wxId)){
 | 
	
		
			
				|  |  |                                     List<BasePatientDO> listpatients=basePatientDao.findByMobileAndDel(jsonObject1.getString("TEL"),"1");
 | 
	
		
			
				|  |  |                                     if (listpatients!=null&&listpatients.size()>0){
 | 
	
		
			
				|  |  |                                         patientDO=listpatients.get(0);
 | 
	
		
			
				|  |  |                                     }
 | 
	
		
			
				|  |  |                                 }else {
 | 
	
		
			
				|  |  |                                     patientDO= basePatientDao.findByIdcard(jsonObject1.getString("IDCARD"));
 | 
	
		
			
				|  |  |                                 }
 | 
	
		
			
				|  |  |                                 patientDO.setMobile(jsonObject1.getString("TEL"));
 | 
	
		
			
				|  |  |                                 if(StringUtils.isNotBlank(jsonObject1.getString("BIRTHDAY"))){
 |