|  | @ -139,8 +139,7 @@ public class ConsultTeamService extends ConsultService {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 查詢醫生網絡諮詢列表
 | 
	
		
			
				|  |  |      *
 | 
	
		
			
				|  |  |      * @param type     咨询类型:1、咨询我的,2、公共的, 3、参与过的,4、已结束的 5 名医咨询 全部  6 名医咨询 进行中 7 名医咨询 已结束 8名医咨询 待处理 9咨询我的三师 + 家庭 + 名医
 | 
	
		
			
				|  |  |      * @param type 咨询类型:1、咨询我的,2、公共的, 3、参与过的,4、已结束的 5 名医咨询 全部  6 名医咨询 进行中 7 名医咨询 已结束 8名医咨询 待处理 9咨询我的三师 + 家庭 + 名医
 | 
	
		
			
				|  |  |      * @param id
 | 
	
		
			
				|  |  |      * @param pagesize 每页显示数,默认为10
 | 
	
		
			
				|  |  |      * @return
 | 
	
	
		
			
				|  | @ -1473,8 +1472,18 @@ public class ConsultTeamService extends ConsultService {
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             Doctor doctorTemp = doctorDao.findByCode(ct.getDoctor());
 | 
	
		
			
				|  |  |             JSONObject qiuzuObj = new JSONObject();
 | 
	
		
			
				|  |  |             qiuzuObj.put("session_id",oldConsult.getPatient()+"_consult_"+oldConsult.getType());
 | 
	
		
			
				|  |  |             qiuzuObj.put("patient",ct.getPatient());
 | 
	
		
			
				|  |  |             qiuzuObj.put("old_consult_code",oldConsultCode);
 | 
	
		
			
				|  |  |             qiuzuObj.put("doctor",ct.getDoctor());
 | 
	
		
			
				|  |  |             qiuzuObj.put("doctor_name",doctorTemp.getName());
 | 
	
		
			
				|  |  |             ImUtill.sendTopicIM(doctor.getCode(),doctor.getName(),oldConsultCode,"5",qiuzuObj.toString());
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         ImUtill.sendImMsg(ct.getPatient(), ct.getDoctor(), session.getString("id"), "1", "咨询问题:" + ct.getSymptoms(), "1");
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         ImUtill.sendImMsg(ct.getPatient(), ct.getDoctor(), session.getString("id"),"1","咨询问题:"+ ct.getSymptoms(),"1");
 | 
	
		
			
				|  |  |         //推送给IM图片
 | 
	
		
			
				|  |  |         if (StringUtils.isNotEmpty(ct.getImages())) {
 | 
	
		
			
				|  |  |             String[] images = ct.getImages().split(",");
 | 
	
	
		
			
				|  | @ -1543,6 +1552,8 @@ public class ConsultTeamService extends ConsultService {
 | 
	
		
			
				|  |  |             ct.setTeam(oldConsultCode);
 | 
	
		
			
				|  |  |             if (oldConsult != null && isSend == 1) {
 | 
	
		
			
				|  |  |                 JSONObject messages = ImUtill.getCreateTopicMessage(doctorTemp.getCode(), doctorTemp.getName(), consult.getTitle(), oldConsult.getSymptoms(), oldConsult.getImages());
 | 
	
		
			
				|  |  |             if(oldConsult!=null&&isSend==1){
 | 
	
		
			
				|  |  |                 JSONObject messages = ImUtill.getCreateTopicMessage(doctorTemp.getCode(), doctorTemp.getName(), consult.getTitle(), "居民问题:"+oldConsult.getSymptoms(), oldConsult.getImages());
 | 
	
		
			
				|  |  |                 JSONObject jsonObject = new JSONObject();
 | 
	
		
			
				|  |  |                 jsonObject.put(ct.getPatient(), 0);
 | 
	
		
			
				|  |  |                 jsonObject.put(ct.getDoctor(), 0);
 | 
	
	
		
			
				|  | @ -1564,8 +1575,7 @@ public class ConsultTeamService extends ConsultService {
 | 
	
		
			
				|  |  |             qiuzuObj.put("old_consult_code", oldConsultCode);
 | 
	
		
			
				|  |  |             qiuzuObj.put("doctor", ct.getDoctor());
 | 
	
		
			
				|  |  |             qiuzuObj.put("doctor_name", doctor.getName());
 | 
	
		
			
				|  |  |             ImUtill.sendTopicIM(doctorTemp.getCode(), doctorTemp.getName(), oldConsultCode, "5", qiuzuObj.toString());
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |             ImUtill.sendTopicIM(doctorTemp.getCode(), doctorTemp.getName(), oldConsultCode, "5", qiuzuObj.toString());}
 | 
	
		
			
				|  |  |         consultTeamDao.save(ct);  // 保存医生咨询信息
 | 
	
		
			
				|  |  |         consultTeamDoctorDao.save(cd);
 | 
	
		
			
				|  |  |         consultDao.save(consult);
 | 
	
	
		
			
				|  | @ -1614,8 +1624,8 @@ public class ConsultTeamService extends ConsultService {
 | 
	
		
			
				|  |  |     public void famousConsult(ConsultTeam ct, String uid, String type) throws Exception {
 | 
	
		
			
				|  |  |         // 设置患者信息
 | 
	
		
			
				|  |  |         ct.setPatient(uid);
 | 
	
		
			
				|  |  |         String senderId = "";
 | 
	
		
			
				|  |  |         String senderName = "";
 | 
	
		
			
				|  |  |         String senderId="";
 | 
	
		
			
				|  |  |         String senderName="";
 | 
	
		
			
				|  |  |         if ("1".equals(type)) {
 | 
	
		
			
				|  |  |             // 查询患者信息
 | 
	
		
			
				|  |  |             Patient tempPatient = patientDao.findByCode(uid);
 |