|  | @ -1749,8 +1749,8 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
 | 
	
		
			
				|  |  |                             String userId= jsonObject.getString("ID");
 | 
	
		
			
				|  |  |                             String tel = jsonObject.getString("LOGINID");
 | 
	
		
			
				|  |  |                             List<BasePatientDO> basePatientDOS = basePatientDao.findByMobile(tel);
 | 
	
		
			
				|  |  |                             BasePatientDO basePatientDO = new BasePatientDO();
 | 
	
		
			
				|  |  |                             if (basePatientDOS==null||basePatientDOS.size()==0){
 | 
	
		
			
				|  |  |                                 BasePatientDO basePatientDO = new BasePatientDO();
 | 
	
		
			
				|  |  |                                 String familyList = ykyyService.getFamilyList(null,userId);
 | 
	
		
			
				|  |  |                                 JSONObject familyJson = JSONObject.parseObject(familyList);
 | 
	
		
			
				|  |  |                                 if (familyJson.getString("code").equalsIgnoreCase("200")){
 | 
	
	
		
			
				|  | @ -1839,7 +1839,7 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
 | 
	
		
			
				|  |  |                                     }
 | 
	
		
			
				|  |  |                                     String birdth = com.yihu.jw.util.idcard.IdCardUtil.getBirthdayForIdcardStr(basePatientDO1.getIdcard());
 | 
	
		
			
				|  |  |                                     Integer age = com.yihu.jw.util.idcard.IdCardUtil.getAgeForIdcard(basePatientDO1.getIdcard());
 | 
	
		
			
				|  |  |                                     Integer sex = basePatientDO.getSex()!=null?basePatientDO.getSex():0;
 | 
	
		
			
				|  |  |                                     Integer sex = basePatientDO1.getSex()!=null?basePatientDO1.getSex():0;
 | 
	
		
			
				|  |  |                                     if (iliness!=null&&iliness.size()!=0){
 | 
	
		
			
				|  |  |                                         if (!iliness.contains("本人")){
 | 
	
		
			
				|  |  |                                             ykyyService.addFamily(basePatientDO1.getUserId(),basePatientDO1.getIdcard(),basePatientDO1.getName(),sex+"",birdth,age+"",basePatientDO1.getMobile());
 |