|  | @ -44,6 +44,7 @@ import com.yihu.jw.rm.base.BaseRequestMapping;
 | 
												
													
														
															|  | import com.yihu.jw.util.common.FileUtil;
 |  | import com.yihu.jw.util.common.FileUtil;
 | 
												
													
														
															|  | import com.yihu.jw.util.common.IdCardUtil;
 |  | import com.yihu.jw.util.common.IdCardUtil;
 | 
												
													
														
															|  | import com.yihu.jw.util.date.DateUtil;
 |  | import com.yihu.jw.util.date.DateUtil;
 | 
												
													
														
															|  | 
 |  | import com.yihu.jw.utils.StringUtil;
 | 
												
													
														
															|  | import com.yihu.jw.wechat.service.WxAccessTokenService;
 |  | import com.yihu.jw.wechat.service.WxAccessTokenService;
 | 
												
													
														
															|  | import org.apache.http.NameValuePair;
 |  | import org.apache.http.NameValuePair;
 | 
												
													
														
															|  | import org.apache.http.message.BasicNameValuePair;
 |  | import org.apache.http.message.BasicNameValuePair;
 | 
												
											
												
													
														
															|  | @ -53,6 +54,7 @@ import org.springframework.beans.factory.annotation.Value;
 | 
												
													
														
															|  | import org.springframework.data.domain.Page;
 |  | import org.springframework.data.domain.Page;
 | 
												
													
														
															|  | import org.springframework.data.domain.PageRequest;
 |  | import org.springframework.data.domain.PageRequest;
 | 
												
													
														
															|  | import org.springframework.data.domain.Sort;
 |  | import org.springframework.data.domain.Sort;
 | 
												
													
														
															|  | 
 |  | import org.springframework.data.redis.core.StringRedisTemplate;
 | 
												
													
														
															|  | import org.springframework.jdbc.core.BeanPropertyRowMapper;
 |  | import org.springframework.jdbc.core.BeanPropertyRowMapper;
 | 
												
													
														
															|  | import org.springframework.jdbc.core.JdbcTemplate;
 |  | import org.springframework.jdbc.core.JdbcTemplate;
 | 
												
													
														
															|  | import org.springframework.stereotype.Service;
 |  | import org.springframework.stereotype.Service;
 | 
												
											
												
													
														
															|  | @ -67,6 +69,7 @@ import java.io.InputStream;
 | 
												
													
														
															|  | import java.net.HttpURLConnection;
 |  | import java.net.HttpURLConnection;
 | 
												
													
														
															|  | import java.net.URL;
 |  | import java.net.URL;
 | 
												
													
														
															|  | import java.util.*;
 |  | import java.util.*;
 | 
												
													
														
															|  | 
 |  | import java.util.concurrent.TimeUnit;
 | 
												
													
														
															|  | import java.util.logging.Logger;
 |  | import java.util.logging.Logger;
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | /**
 |  | /**
 | 
												
											
												
													
														
															|  | @ -152,6 +155,9 @@ public class ImService {
 | 
												
													
														
															|  | 	@Autowired
 |  | 	@Autowired
 | 
												
													
														
															|  | 	private BaseDoctorRoleDao baseDoctorRoleDao;
 |  | 	private BaseDoctorRoleDao baseDoctorRoleDao;
 | 
												
													
														
															|  | 	
 |  | 	
 | 
												
													
														
															|  | 
 |  | 	@Autowired
 | 
												
													
														
															|  | 
 |  | 	private StringRedisTemplate redisTemplate;
 | 
												
													
														
															|  | 
 |  | 	
 | 
												
													
														
															|  | 	
 |  | 	
 | 
												
													
														
															|  | 	
 |  | 	
 | 
												
													
														
															|  | 	/**
 |  | 	/**
 | 
												
											
												
													
														
															|  | @ -2296,4 +2302,18 @@ public class ImService {
 | 
												
													
														
															|  | 		result = jdbcTemplate.query(sql, new BeanPropertyRowMapper(ConsultVO.class));
 |  | 		result = jdbcTemplate.query(sql, new BeanPropertyRowMapper(ConsultVO.class));
 | 
												
													
														
															|  | 		return result;
 |  | 		return result;
 | 
												
													
														
															|  | 	}
 |  | 	}
 | 
												
													
														
															|  | 
 |  | 	
 | 
												
													
														
															|  | 
 |  | 	/**
 | 
												
													
														
															|  | 
 |  | 	 * 修改视频会话邀请状态
 | 
												
													
														
															|  | 
 |  | 	 * @param session_id session_id
 | 
												
													
														
															|  | 
 |  | 	 * @param status 1发起,0挂断
 | 
												
													
														
															|  | 
 |  | 	 */
 | 
												
													
														
															|  | 
 |  | 	public void changeVideoInviteStatus(String session_id,Integer status) throws Exception{
 | 
												
													
														
															|  | 
 |  | 		if(1 == status){
 | 
												
													
														
															|  | 
 |  | 			redisTemplate.opsForValue().set("video_invite_"+session_id,"1");
 | 
												
													
														
															|  | 
 |  | 		}
 | 
												
													
														
															|  | 
 |  | 		if(0== status){
 | 
												
													
														
															|  | 
 |  | 			redisTemplate.opsForValue().set("video_invite_"+session_id,"0");
 | 
												
													
														
															|  | 
 |  | 		}
 | 
												
													
														
															|  | 
 |  | 	}
 | 
												
													
														
															|  | }
 |  | }
 |