浏览代码

AI诊断不一致修改

yuchengwei 8 月之前
父节点
当前提交
587aedf4d4
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      src/main/java/com/diagbot/facade/BehospitalInfoFacade.java

+ 12 - 0
src/main/java/com/diagbot/facade/BehospitalInfoFacade.java

@@ -166,6 +166,9 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
     @Autowired
     QcresultDetailFacade qcresultDetailFacade;
 
+    @Autowired
+    private RedisUtils redisUtils;
+
 
     /**
      * 分页
@@ -1135,6 +1138,15 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
             }
         }
         OutputInfo outputInfo = response.getData();
+        //判断是否演示病历包含的条目
+        Object casesEntryObj = redisUtils.get("hebeiyanshi_behospitalcode_" + queryVo.getBehospitalInfo().getBehospitalCode());
+        if (casesEntryObj != null) {
+            String[] infos = casesEntryObj.toString().split("_");
+            Map<String, String> infoMap = new HashMap<>();
+            infoMap.put("info", infos[1]);
+            outputInfo.getResult().put(infos[0],infoMap);
+        }
+
         // 质控编码列表
         List<String> codeList = new ArrayList<>();
         // code和info的映射map