|
@ -197,11 +197,9 @@ public class ConsultTeamService extends ConsultService {
|
|
if (null == patientDO) {
|
|
if (null == patientDO) {
|
|
throw new Exception("当前居民不存在");
|
|
throw new Exception("当前居民不存在");
|
|
}
|
|
}
|
|
|
|
|
|
//咨询记录
|
|
//咨询记录
|
|
String title = patientDO.getName() + "-发起了服务咨询";
|
|
String title = patientDO.getName() + "-发起了服务咨询";
|
|
ConsultDo consult = addConsult(patient, title, doorServiceOrderDO.getServeDesc(), patientDO.getPhone(), 11);
|
|
ConsultDo consult = addConsult(patient, title, doorServiceOrderDO.getServeDesc(), patientDO.getPhone(), 11);
|
|
|
|
|
|
//咨询详细信息
|
|
//咨询详细信息
|
|
ConsultTeamDo consultTeam = new ConsultTeamDo();
|
|
ConsultTeamDo consultTeam = new ConsultTeamDo();
|
|
consultTeam.setType(11); //上门服务咨询
|
|
consultTeam.setType(11); //上门服务咨询
|
|
@ -228,7 +226,6 @@ public class ConsultTeamService extends ConsultService {
|
|
JSONObject participants = new JSONObject();
|
|
JSONObject participants = new JSONObject();
|
|
participants.put(patient, 0);
|
|
participants.put(patient, 0);
|
|
|
|
|
|
|
|
|
|
// String content = signFamily.getHospitalName() + "为您服务";
|
|
// String content = signFamily.getHospitalName() + "为您服务";
|
|
String content = doorServiceOrderDO.getDoctorName() + "为您服务";
|
|
String content = doorServiceOrderDO.getDoctorName() + "为您服务";
|
|
JSONObject messages = imUtill.getCreateTopicMessage(patient, patientDO.getName(), consult.getTitle(), content, consult.getImages(), "");
|
|
JSONObject messages = imUtill.getCreateTopicMessage(patient, patientDO.getName(), consult.getTitle(), content, consult.getImages(), "");
|
|
@ -237,9 +234,7 @@ public class ConsultTeamService extends ConsultService {
|
|
|
|
|
|
// if (imResponseJson == null || imResponseJson.getString("status").equals("-1")) {
|
|
// if (imResponseJson == null || imResponseJson.getString("status").equals("-1")) {
|
|
// String failMsg = "发起服务咨询时:IM" + imResponseJson.getString("message");
|
|
// String failMsg = "发起服务咨询时:IM" + imResponseJson.getString("message");
|
|
// result.put(ResponseContant.resultFlag, ResponseContant.success);
|
|
|
|
// result.put(ResponseContant.resultMsg, failMsg);
|
|
|
|
// return result;
|
|
|
|
|
|
// throw new Exception(failMsg);
|
|
// }
|
|
// }
|
|
if (imResponseJson != null && imResponseJson.get("start_msg_id") != null) {
|
|
if (imResponseJson != null && imResponseJson.get("start_msg_id") != null) {
|
|
consultTeam.setStartMsgId(imResponseJson.get("start_msg_id").toString());
|
|
consultTeam.setStartMsgId(imResponseJson.get("start_msg_id").toString());
|