|  | @ -72,6 +72,8 @@ class SessionRepo {
 | 
												
													
														
															|  |     /**
 |  |     /**
 | 
												
													
														
															|  |      * 按时间跨度查询会话。
 |  |      * 按时间跨度查询会话。
 | 
												
													
														
															|  |      *
 |  |      *
 | 
												
													
														
															|  | 
 |  |      * TODO: 暂时屏蔽与患者相关的会话,包括MUC与患者名医咨询
 | 
												
													
														
															|  | 
 |  |      *
 | 
												
													
														
															|  |      * @param userId
 |  |      * @param userId
 | 
												
													
														
															|  |      * @param dateSpan
 |  |      * @param dateSpan
 | 
												
													
														
															|  |      * @param handler
 |  |      * @param handler
 | 
												
											
												
													
														
															|  | @ -82,7 +84,7 @@ class SessionRepo {
 | 
												
													
														
															|  |         "LEFT JOIN doctors d ON p.participant_id = d.id " +
 |  |         "LEFT JOIN doctors d ON p.participant_id = d.id " +
 | 
												
													
														
															|  |         "WHERE s.id = p.session_id AND s.last_sender_id <> 'system' " +
 |  |         "WHERE s.id = p.session_id AND s.last_sender_id <> 'system' " +
 | 
												
													
														
															|  |         "AND UNIX_TIMESTAMP(s.last_message_time) > UNIX_TIMESTAMP(NOW()) - ? " +
 |  |         "AND UNIX_TIMESTAMP(s.last_message_time) > UNIX_TIMESTAMP(NOW()) - ? " +
 | 
												
													
														
															|  |         "AND p.participant_id <> ? " +
 |  | 
 | 
												
													
														
															|  | 
 |  |         "AND p.participant_id <> ? AND s.type <> 1 AND s.business_type = 1 " +
 | 
												
													
														
															|  |         "AND s.id in (select s.id from sessions s, participants p where s.id = p.session_id and p.participant_id = ?) " +
 |  |         "AND s.id in (select s.id from sessions s, participants p where s.id = p.session_id and p.participant_id = ?) " +
 | 
												
													
														
															|  |         "ORDER BY s.last_message_time DESC";
 |  |         "ORDER BY s.last_message_time DESC";
 | 
												
													
														
															|  | 
 |  | 
 |