提交 a264b890 authored 作者: 杨凯's avatar 杨凯

feat:家庭医生初始化

上级 76d9b304
...@@ -182,9 +182,8 @@ public class ImChatTemplateImpl implements ImChatTemplate { ...@@ -182,9 +182,8 @@ public class ImChatTemplateImpl implements ImChatTemplate {
content = MessageFormat.format(content, patientSignInfo.getDoctorName(), ReportTypeEnum.getDesc(reportDetailVo.getReportType())); content = MessageFormat.format(content, patientSignInfo.getDoctorName(), ReportTypeEnum.getDesc(reportDetailVo.getReportType()));
} }
} else if (i == 1) { } else if (i == 1) {
Map<String, Object> map = new HashMap<>(); Map<String, Object> imageMap = new HashMap<>();
if (reportDetailVo.getReportType().equals(1)) { if (reportDetailVo.getReportType().equals(1)) {
Map<String, Object> imageMap = new HashMap<>();
imageMap.put("UserAction", CommonConstants.USER_ACTION); imageMap.put("UserAction", CommonConstants.USER_ACTION);
imageMap.put("applicationCode", IMInformConstants.IM_SYSTEM_BUSINESS_CODE); imageMap.put("applicationCode", IMInformConstants.IM_SYSTEM_BUSINESS_CODE);
imageMap.put("appointmentId", sendImMsgDTO.getAdmId()); imageMap.put("appointmentId", sendImMsgDTO.getAdmId());
...@@ -200,10 +199,9 @@ public class ImChatTemplateImpl implements ImChatTemplate { ...@@ -200,10 +199,9 @@ public class ImChatTemplateImpl implements ImChatTemplate {
imageMap.put("teamFlag", 0); imageMap.put("teamFlag", 0);
imageMap.put("toApplicationCode", IMInformConstants.IM_SYSTEM_BUSINESS_CODE); imageMap.put("toApplicationCode", IMInformConstants.IM_SYSTEM_BUSINESS_CODE);
map.put("Data", imageMap);
msgType = "TIMCustomElem"; msgType = "TIMCustomElem";
} }
content = JSONObject.toJSONString(map); content = JSONObject.toJSONString(imageMap);
} else if (i == 2) { } else if (i == 2) {
if (Objects.nonNull(reportDetailVo)) { if (Objects.nonNull(reportDetailVo)) {
content = MessageFormat.format(content, ReportTypeEnum.getDesc(reportDetailVo.getReportType())); content = MessageFormat.format(content, ReportTypeEnum.getDesc(reportDetailVo.getReportType()));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论