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

feat:家庭医生初始化

上级 431bc572
...@@ -13,7 +13,7 @@ import java.util.List; ...@@ -13,7 +13,7 @@ import java.util.List;
@Data @Data
public class ReportDetailVo { public class ReportDetailVo {
private String reprotName; private String reportName;
private String institution; private String institution;
......
...@@ -171,9 +171,9 @@ public class ImChatTemplateImpl implements ImChatTemplate { ...@@ -171,9 +171,9 @@ public class ImChatTemplateImpl implements ImChatTemplate {
// 报告解读 // 报告解读
if (MsgTempTypeEnum.REP_INTER.getValue().equals(sendImMsgDTO.getType())) { if (MsgTempTypeEnum.REP_INTER.getValue().equals(sendImMsgDTO.getType())) {
if (!StringUtils.isEmpty(reportResult)) { if (!StringUtils.isEmpty(reportResult)) {
Result<String> rrResult = JSON.parseObject(reportResult, Result.class); Result<ReportDetailVo> rrResult = JSON.parseObject(reportResult, Result.class);
if (rrResult.isSuccess()) { if (rrResult.isSuccess()) {
ReportDetailVo reportDetailVo = JSONObject.parseObject(rrResult.getData(), ReportDetailVo.class); ReportDetailVo reportDetailVo = rrResult.getData();
List<ReportDetailItemVo> reportDetailItemVos = reportDetailVo.getReportFileList(); List<ReportDetailItemVo> reportDetailItemVos = reportDetailVo.getReportFileList();
if (i == 1 || i == 3) { if (i == 1 || i == 3) {
if (Objects.nonNull(reportDetailVo)) { if (Objects.nonNull(reportDetailVo)) {
...@@ -197,9 +197,9 @@ public class ImChatTemplateImpl implements ImChatTemplate { ...@@ -197,9 +197,9 @@ public class ImChatTemplateImpl implements ImChatTemplate {
} else { } else {
map.put("UUID", UUIDUtil.getUUID()); map.put("UUID", UUIDUtil.getUUID());
map.put("URL", reportDetailItemVos.get(0).getFileUrl()); map.put("URL", reportDetailItemVos.get(0).getFileUrl());
map.put("FileName", StringUtils.isEmpty(reportDetailVo.getReprotName()) map.put("FileName", StringUtils.isEmpty(reportDetailVo.getReportName())
? ReportTypeEnum.getDesc(reportDetailVo.getReportType()) ? ReportTypeEnum.getDesc(reportDetailVo.getReportType())
: reportDetailVo.getReprotName()); : reportDetailVo.getReportName());
map.put("Download_Flag", "2"); map.put("Download_Flag", "2");
} }
content = JSONObject.toJSONString(map); content = JSONObject.toJSONString(map);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论