| 
					
				 | 
			
			
				@ -1385,7 +1385,7 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								JSONObject object = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								object.put("socket_sms_type",5); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								object.put("relation_code",wlyyOutpatientDO.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								imUtil.sendMessage(wlyyOutpatientDO.getDoctor(),wlyyOutpatientDO.getPatient(),"1",object.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								imUtil.sendMessage(wlyyOutpatientDO.getDoctor(),wlyyOutpatientDO.getConsumer(),"1",object.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								//医生接诊发送导诊护士外层消息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								this.sendOutpatientGuaidanceMessage(wlyyOutpatientDO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							}else if("2".equals(wlyyOutpatientDO.getOutpatientType())){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1403,7 +1403,7 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								JSONObject object = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								object.put("socket_sms_type",5); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								object.put("relation_code",wlyyOutpatientDO.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								imUtil.sendMessage(wlyyOutpatientDO.getDoctor(),wlyyOutpatientDO.getPatient(),"1",object.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								imUtil.sendMessage(wlyyOutpatientDO.getDoctor(),wlyyOutpatientDO.getConsumer(),"1",object.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								//医生接诊发送导诊护士外层消息 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								this.sendOutpatientGuaidanceMessage(wlyyOutpatientDO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -3665,7 +3665,7 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String sql=  "SELECT count(1) AS \"total\"  " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								" FROM wlyy_outpatient a " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								" WHERE a.outpatient_type in (1,2,3)" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								" AND b.doctor='" + doctorCode + "' AND a.type in (1,2,3) and a.status in (0,1) and a.pay_status=1" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								" AND a.doctor='" + doctorCode + "' AND a.type in (1,2,3) and a.status in (0,1) and a.pay_status=1" + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								" ORDER BY a.create_time desc "; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						List<Map<String, Object>> rstotal = jdbcTemplate.queryForList(sql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						Long consultCount = 0l; 
			 |