Kaynağa Gözat

AI诊断不一致修改

yuchengwei 8 ay önce
ebeveyn
işleme
587aedf4d4

+ 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