Browse Source

优化代码

wangfeng 4 years ago
parent
commit
3fced5c178
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/diagbot/facade/ConceptInfoFacade.java

+ 2 - 2
src/main/java/com/diagbot/facade/ConceptInfoFacade.java

@@ -342,9 +342,9 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
 
 
         List<StaticKnowledgeHISDTO> retList = Lists.newArrayList();
         List<StaticKnowledgeHISDTO> retList = Lists.newArrayList();
         List<DictionaryInfoDTO> dicStaticTypeList = dictionaryFacade.getListByGroupType(10);
         List<DictionaryInfoDTO> dicStaticTypeList = dictionaryFacade.getListByGroupType(10);
-        Map<Integer, String> dicStaticTypeValNameMap =
+        Map<String, String> dicStaticTypeValNameMap =
                 EntityUtil.makeMapWithKeyValue(dicStaticTypeList, "val", "name");
                 EntityUtil.makeMapWithKeyValue(dicStaticTypeList, "val", "name");
-        String typeName = dicStaticTypeValNameMap.get(staticKnowledgeHISVO.getType());
+        String typeName = dicStaticTypeValNameMap.get(staticKnowledgeHISVO.getType().toString());
         List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
         List<DictionaryInfoDTO> dicList = dictionaryFacade.getListByGroupType(8);
         typeName = convertTypeName(typeName, 1, dicList);
         typeName = convertTypeName(typeName, 1, dicList);
         //术语映射
         //术语映射