|  | @@ -132,14 +132,18 @@ public class ClinicController {
 | 
	
		
			
				|  |  |                  return resultMap;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              if(StringUtils.isNotBlank(mzPatientMi.getSocialNo())){
 | 
	
		
			
				|  |  | -                APatientMi aPatientMi= aPatientMiService.queryAPatientBySocialNo(mzPatientMi.getSocialNo());
 | 
	
		
			
				|  |  | -                if(aPatientMi!=null && StringUtils.isNotBlank(aPatientMi.getInpatientNo())){
 | 
	
		
			
				|  |  | -                   int num= zyActpatientService.queryCountByInpatientNo(aPatientMi.getInpatientNo());
 | 
	
		
			
				|  |  | -                   if(num>0){
 | 
	
		
			
				|  |  | -                       resultMap.put("code", -1);
 | 
	
		
			
				|  |  | -                       resultMap.put("message", "当前患者正在我院住院治疗,无法继续在门诊就诊!");
 | 
	
		
			
				|  |  | -                       return resultMap;
 | 
	
		
			
				|  |  | -                   }
 | 
	
		
			
				|  |  | +                List<APatientMi> aPatientMis= aPatientMiService.queryAPatientBySocialNo(mzPatientMi.getSocialNo());
 | 
	
		
			
				|  |  | +                if(aPatientMis!=null && aPatientMis.size()>0){
 | 
	
		
			
				|  |  | +                    for (APatientMi aPatientMi:aPatientMis){
 | 
	
		
			
				|  |  | +                        if(aPatientMi!=null && StringUtils.isNotBlank(aPatientMi.getInpatientNo())){
 | 
	
		
			
				|  |  | +                            int num= zyActpatientService.queryCountByInpatientNo(aPatientMi.getInpatientNo());
 | 
	
		
			
				|  |  | +                            if(num>0){
 | 
	
		
			
				|  |  | +                                resultMap.put("code", -1);
 | 
	
		
			
				|  |  | +                                resultMap.put("message", "当前患者正在我院住院治疗,无法继续在门诊就诊!");
 | 
	
		
			
				|  |  | +                                return resultMap;
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              User tokenUser = TokenUtil.getUser(httpServletRequest);
 |