|  | @ -85,18 +85,21 @@ router.post("/", function (req, res) {
 | 
												
													
														
															|  |                         if(payload.hasOwnProperty("mobile"))access_token = payload.access_token;
 |  |                         if(payload.hasOwnProperty("mobile"))access_token = payload.access_token;
 | 
												
													
														
															|  |                         videoconferencing = true;
 |  |                         videoconferencing = true;
 | 
												
													
														
															|  |                         //发送广播,给相关的与会人员
 |  |                         //发送广播,给相关的与会人员
 | 
												
													
														
															|  |                         for (let j in participants) {
 |  | 
 | 
												
													
														
															|  |                             let userId = "pcim_"+j;
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |                             let pc_doctorClient = clientCache.findById(userId);
 |  | 
 | 
												
													
														
															|  |                             if(pc_doctorClient){
 |  | 
 | 
												
													
														
															|  |                                 log.info("videoconferencing send to "+userId);
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |                                 pc_doctorClient.socket.emit("startVideoconference",{"sessionId":sessionId,"user_id":j});
 |  | 
 | 
												
													
														
															|  |                             }
 |  | 
 | 
												
													
														
															|  |                             else{
 |  | 
 | 
												
													
														
															|  |                                 log.info("videoconferencing not find "+userId);
 |  | 
 | 
												
													
														
															|  |                             }
 |  | 
 | 
												
													
														
															|  | 
 |  |                         for (let k in participants) {
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |                             sessions.conversionAarticipant(k, (doctorid) => {
 | 
												
													
														
															|  | 
 |  |                                 let userId = "pcim_"+doctorid;
 | 
												
													
														
															|  | 
 |  |                                 let pc_doctorClient = clientCache.findById(userId);
 | 
												
													
														
															|  | 
 |  |                                 if(pc_doctorClient){
 | 
												
													
														
															|  | 
 |  |                                     log.info("videoconferencing send to "+userId);
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |                                     pc_doctorClient.socket.emit("startVideoconference",{"sessionId":sessionId,"user_id":j});
 | 
												
													
														
															|  | 
 |  |                                 }
 | 
												
													
														
															|  | 
 |  |                                 else{
 | 
												
													
														
															|  | 
 |  |                                     log.info("videoconferencing not find "+userId);
 | 
												
													
														
															|  | 
 |  |                                 }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |                             })
 | 
												
													
														
															|  |                         }
 |  |                         }
 | 
												
													
														
															|  |                     }
 |  |                     }
 | 
												
													
														
															|  |                 }
 |  |                 }
 | 
												
											
												
													
														
															|  | @ -156,6 +159,7 @@ router.get("/", function (req, res) {
 | 
												
													
														
															|  |     let userId = req.query.user_id;
 |  |     let userId = req.query.user_id;
 | 
												
													
														
															|  |     let businessType = req.query.business_type;
 |  |     let businessType = req.query.business_type;
 | 
												
													
														
															|  |     let status = req.query.status;
 |  |     let status = req.query.status;
 | 
												
													
														
															|  | 
 |  |     let videoconferencing = req.query.videoconferencing;
 | 
												
													
														
															|  |     if (!page) {
 |  |     if (!page) {
 | 
												
													
														
															|  |         throw {httpStatus: 406, message: 'Missing page.'};
 |  |         throw {httpStatus: 406, message: 'Missing page.'};
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
											
												
													
														
															|  | @ -168,13 +172,25 @@ router.get("/", function (req, res) {
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     let sessions = new Sessions();
 |  |     let sessions = new Sessions();
 | 
												
													
														
															|  |     ControllerUtil.regModelEventHandler(sessions, res);
 |  |     ControllerUtil.regModelEventHandler(sessions, res);
 | 
												
													
														
															|  |     //传入参数齐全走过滤方法
 |  | 
 | 
												
													
														
															|  |     if(status&&businessType&&userId&&size&&page){
 |  | 
 | 
												
													
														
															|  |         sessions.getUserStatusSessions(userId,status,businessType,page,size);
 |  | 
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | 
 |  |     //判断是否是中山医院MDT的请求
 | 
												
													
														
															|  | 
 |  |     if(videoconferencing && videoconferencing == 1){
 | 
												
													
														
															|  | 
 |  |         sessions.conversionAarticipant(userId, (doctorid) => {
 | 
												
													
														
															|  | 
 |  |             //传入参数齐全走过滤方法
 | 
												
													
														
															|  | 
 |  |             if(status&&businessType&&doctorid&&size&&page){
 | 
												
													
														
															|  | 
 |  |                 sessions.getUserStatusSessions(doctorid,status,businessType,page,size);
 | 
												
													
														
															|  | 
 |  |             }else{
 | 
												
													
														
															|  | 
 |  |                 sessions.getUserSessions(doctorid, page, size, businessType);
 | 
												
													
														
															|  | 
 |  |             }
 | 
												
													
														
															|  | 
 |  |         })
 | 
												
													
														
															|  |     }else{
 |  |     }else{
 | 
												
													
														
															|  |         sessions.getUserSessions(userId, page, size, businessType);
 |  | 
 | 
												
													
														
															|  | 
 |  |         //传入参数齐全走过滤方法
 | 
												
													
														
															|  | 
 |  |         if(status&&businessType&&userId&&size&&page){
 | 
												
													
														
															|  | 
 |  |             sessions.getUserStatusSessions(userId,status,businessType,page,size);
 | 
												
													
														
															|  | 
 |  |         }else{
 | 
												
													
														
															|  | 
 |  |             sessions.getUserSessions(userId, page, size, businessType);
 | 
												
													
														
															|  | 
 |  |         }
 | 
												
													
														
															|  |     }
 |  |     }
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | });
 |  | });
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  | /**
 |  | /**
 |