瀏覽代碼

医学规则测试

zhaops 4 年之前
父節點
當前提交
c4e92f5e33
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      cdssman-service/src/main/java/com/diagbot/facade/DrugConfigFacade.java

+ 2 - 2
cdssman-service/src/main/java/com/diagbot/facade/DrugConfigFacade.java

@@ -539,7 +539,7 @@ public class DrugConfigFacade {
         for (Map.Entry<String, List<DrugConfig>> entry : hisNameMap.entrySet()) {
             if (ListUtil.isNotEmpty(entry.getValue())) {
                 retMap.put(entry.getKey(),
-                        EntityUtil.makeMapWithKeyValue(records, "uniqueName", "id"));
+                        EntityUtil.makeMapWithKeyValue(entry.getValue(), "uniqueName", "id"));
             }
         }
         return retMap;
@@ -579,7 +579,7 @@ public class DrugConfigFacade {
         for (Map.Entry<String, List<DrugConfig>> entry : uniqueNameMap.entrySet()) {
             if (ListUtil.isNotEmpty(entry.getValue())) {
                 retMap.put(entry.getKey(),
-                        EntityUtil.makeMapWithKeyValue(records, "hisName", "id"));
+                        EntityUtil.makeMapWithKeyValue(entry.getValue(), "hisName", "id"));
             }
         }
         return retMap;