|  | @@ -243,7 +243,9 @@ public class ClinicController {
 | 
	
		
			
				|  |  |                  return resultMap;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              if(zyActpatientService.checkZaiYuan(patientId)){
 | 
	
		
			
				|  |  | -                throw new BizException("病人已经在住院,不能接诊,再开门诊处方");
 | 
	
		
			
				|  |  | +                resultMap.put("code", -1);
 | 
	
		
			
				|  |  | +                resultMap.put("message", "病人已经在住院,不能接诊,再开门诊处方");
 | 
	
		
			
				|  |  | +                return resultMap;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              List<String> deptCodes = userDeptRelationService.queryAllByUserIdCode(tokenUser.getUserIdCode());
 | 
	
		
			
				|  |  |              String yjDeptCode=checkYjDept(deptCodes);
 |