| 
															
																@ -1,6 +1,7 @@ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																package com.yihu.wlyy.web.common.im; 
															 | 
															
															 | 
															
																package com.yihu.wlyy.web.common.im; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																import com.yihu.wlyy.entity.consult.Consult; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import com.yihu.wlyy.entity.doctor.profile.Doctor; 
															 | 
															
															 | 
															
																import com.yihu.wlyy.entity.doctor.profile.Doctor; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import com.yihu.wlyy.repository.consult.ConsultDao; 
															 | 
															
															 | 
															
																import com.yihu.wlyy.repository.consult.ConsultDao; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import com.yihu.wlyy.repository.doctor.DoctorDao; 
															 | 
															
															 | 
															
																import com.yihu.wlyy.repository.doctor.DoctorDao; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -87,7 +88,7 @@ public class imController extends BaseController { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                String sex = ob.get("sex").toString(); 
															 | 
															
															 | 
															
																                String sex = ob.get("sex").toString(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                String startId = ob.get("start_message_id").toString(); 
															 | 
															
															 | 
															
																                String startId = ob.get("start_message_id").toString(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                String endId = ob.get("end_message_id").toString(); 
															 | 
															
															 | 
															
																                String endId = ob.get("end_message_id").toString(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                int type = consultDao.findTypeByCode(id); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                Consult con = consultDao.findTypeByCode(id); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                if (StringUtils.isNotEmpty(createTime)){ 
															 | 
															
															 | 
															
																                if (StringUtils.isNotEmpty(createTime)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    Date date = sdf.parse(createTime); 
															 | 
															
															 | 
															
																                    Date date = sdf.parse(createTime); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    map.put("create_time",sdf.format(date)); 
															 | 
															
															 | 
															
																                    map.put("create_time",sdf.format(date)); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -97,12 +98,13 @@ public class imController extends BaseController { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                map.put("session_id", session_id); 
															 | 
															
															 | 
															
																                map.put("session_id", session_id); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                map.put("photo", avatar); 
															 | 
															
															 | 
															
																                map.put("photo", avatar); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                map.put("patientName", name); 
															 | 
															
															 | 
															
																                map.put("patientName", name); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                map.put("patient", con.getPatient()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                map.put("sex", sex); 
															 | 
															
															 | 
															
																                map.put("sex", sex); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                map.put("description", description); 
															 | 
															
															 | 
															
																                map.put("description", description); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                map.put("start_message_id", startId); 
															 | 
															
															 | 
															
																                map.put("start_message_id", startId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                map.put("end_message_id", endId); 
															 | 
															
															 | 
															
																                map.put("end_message_id", endId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																//                咨询类型:1三师咨询,2家庭医生咨询,3图文咨询,4公共咨询,5病友圈 
															 | 
															
															 | 
															
																//                咨询类型:1三师咨询,2家庭医生咨询,3图文咨询,4公共咨询,5病友圈 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                map.put("type", type); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                map.put("type", con.getType()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                list.add(map); 
															 | 
															
															 | 
															
																                list.add(map); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } 
															 | 
															
															 | 
															
																            } 
															 |