|  | @ -673,6 +673,7 @@ public class ImService {
 | 
	
		
			
				|  |  | 		}
 | 
	
		
			
				|  |  | 		InputStream is = null;
 | 
	
		
			
				|  |  | 		String url = "http://file.api.weixin.qq.com/cgi-bin/media/get?access_token=" + accessToken + "&media_id=" + mediaId;
 | 
	
		
			
				|  |  | 		logger.info("media/get"+url);
 | 
	
		
			
				|  |  | 		try {
 | 
	
		
			
				|  |  | 			URL urlGet = new URL(url);
 | 
	
		
			
				|  |  | 			HttpURLConnection http = (HttpURLConnection) urlGet.openConnection();
 | 
	
	
		
			
				|  | @ -686,6 +687,7 @@ public class ImService {
 | 
	
		
			
				|  |  | 			// 获取文件转化为byte流
 | 
	
		
			
				|  |  | 			is = http.getInputStream();
 | 
	
		
			
				|  |  | 		} catch (Exception e) {
 | 
	
		
			
				|  |  | 			logger.info(e.getMessage());
 | 
	
		
			
				|  |  | 			e.printStackTrace();
 | 
	
		
			
				|  |  | 		}
 | 
	
		
			
				|  |  | 		return is;
 | 
	
	
		
			
				|  | @ -2378,4 +2380,21 @@ public class ImService {
 | 
	
		
			
				|  |  | 			redisTemplate.opsForValue().set("video_invite_"+session_id,"0");
 | 
	
		
			
				|  |  | 		}
 | 
	
		
			
				|  |  | 	}
 | 
	
		
			
				|  |  | 	
 | 
	
		
			
				|  |  | 	/**
 | 
	
		
			
				|  |  | 	 * 查询会话视频邀请状态
 | 
	
		
			
				|  |  | 	 * @param doctorids
 | 
	
		
			
				|  |  | 	 * @return
 | 
	
		
			
				|  |  | 	 * @throws Exception
 | 
	
		
			
				|  |  | 	 */
 | 
	
		
			
				|  |  | 	public List<Map<String,Object>>  getDoctorConsultCount(String doctorids) throws Exception{
 | 
	
		
			
				|  |  | 		//医生角色
 | 
	
		
			
				|  |  | 		String sql = "SELECT " +
 | 
	
		
			
				|  |  | 				"count(id) AS total," +
 | 
	
		
			
				|  |  | 				"doctor " +
 | 
	
		
			
				|  |  | 				"FROM wlyy_consult_team " +
 | 
	
		
			
				|  |  | 				"WHERE doctor IN ("+doctorids+") AND (type=1 OR type=15) and status = 0 GROUP BY doctor";
 | 
	
		
			
				|  |  | 		List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
 | 
	
		
			
				|  |  | 		return list;
 | 
	
		
			
				|  |  | 	}
 | 
	
		
			
				|  |  | }
 |