|
@ -51,6 +51,7 @@ import org.springside.modules.persistence.SearchFilter.Operator;
|
|
|
import org.springside.modules.utils.Clock;
|
|
|
|
|
|
import com.yihu.wlyy.task.PushMsgTask;
|
|
|
import org.springside.modules.utils.Threads;
|
|
|
|
|
|
import javax.print.Doc;
|
|
|
|
|
@ -139,8 +140,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
|
|
@ -1469,7 +1469,17 @@ 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");
|
|
|
//推送给IM图片
|
|
|
if (StringUtils.isNotEmpty(ct.getImages())) {
|
|
@ -1537,7 +1547,7 @@ public class ConsultTeamService extends ConsultService {
|
|
|
Consult oldConsult = consultDao.findByCode(oldConsultCode);
|
|
|
ct.setTeam(oldConsultCode);
|
|
|
if(oldConsult!=null&&isSend==1){
|
|
|
JSONObject messages = ImUtill.getCreateTopicMessage(doctorTemp.getCode(), doctorTemp.getName(), consult.getTitle(), oldConsult.getSymptoms(), oldConsult.getImages());
|
|
|
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);
|
|
@ -1554,7 +1564,7 @@ public class ConsultTeamService extends ConsultService {
|
|
|
}
|
|
|
}
|
|
|
JSONObject qiuzuObj = new JSONObject();
|
|
|
qiuzuObj.put("session_id",oldConsult.getPatient()+"_consult_"+consult.getType());
|
|
|
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());
|