| 
					
				 | 
			
			
				@ -5,6 +5,7 @@ import com.yihu.wlyy.sign.common.SystemConfig; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.sign.common.util.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.sign.dao.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.wlyy.sign.entity.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.apache.commons.lang3.StringUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.dao.DataIntegrityViolationException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.data.domain.PageRequest; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -75,6 +76,9 @@ public class SignZYService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private SignFamilyServerService signFamilyServerService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private CountryDao countryDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 获取机构映射 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1406,7 +1410,16 @@ public class SignZYService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    params.put("SICK_PHONE", patient.getMobile() == null ? "" : patient.getMobile());   //联系电话 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    params.put("SICK_COUNTY", patient.getTown() == null ? "" : patient.getTown());    //行政区 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    params.put("SICK_COUNTRY", patient.getStreet() == null ? "" : patient.getStreet());    //街道 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    params.put("SICK_VILLAGE", patient.getSickVillage() == null ? "" : patient.getSickVillage());    //居委会 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    if(StringUtils.isNoneBlank(patient.getSickVillage())){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        //居委会需要转换成基卫的居委会CODE 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        Country country = countryDao.findByCode(patient.getSickVillage()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        params.put("SICK_VILLAGE", country.getJwCode());    //居委会 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    }else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        params.put("SICK_VILLAGE", "");    //居委会 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    params.put("SICK_ADDRESS",  patient.getAddress() == null ? "" : patient.getAddress());    //地址 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } else { 
			 |