Browse Source

回退 "修改分隔符"

zhoutg 4 years ago
parent
commit
ea84961355

+ 0 - 49
cdssman-service/src/main/java/com/diagbot/enums/CommonEnum.java

@@ -1,49 +0,0 @@
-package com.diagbot.enums;
-
-import com.diagbot.core.KeyedNamed;
-import lombok.Setter;
-
-/**
- * @author zhoutg
- * @Description:
- * @date 2018年11月21日 下午2:31:42
- */
-public enum CommonEnum implements KeyedNamed {
-    splitSymbol(1, "#");
-
-    @Setter
-    private int key;
-
-    @Setter
-    private String name;
-
-    CommonEnum(int key, String name) {
-        this.key = key;
-        this.name = name;
-    }
-
-    public static CommonEnum getEnum(int key) {
-        for (CommonEnum item : CommonEnum.values()) {
-            if (item.key == key) {
-                return item;
-            }
-        }
-        return null;
-    }
-
-    public static String getName(int key) {
-        CommonEnum item = getEnum(key);
-        return item != null ? item.name : null;
-    }
-
-    @Override
-    public int getKey() {
-        return key;
-    }
-
-    @Override
-    public String getName() {
-        return name;
-    }
-}
-

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

@@ -22,7 +22,6 @@ import com.diagbot.entity.KlLibraryInfo;
 import com.diagbot.entity.KlRelation;
 import com.diagbot.entity.KlRule;
 import com.diagbot.entity.KlRuleBase;
-import com.diagbot.enums.CommonEnum;
 import com.diagbot.enums.IsDeleteEnum;
 import com.diagbot.enums.LexiconEnum;
 import com.diagbot.enums.RelationLibTypeEnum;
@@ -156,7 +155,7 @@ public class KlConceptFacade extends KlConceptServiceImpl {
                 i.setSynonymName(libMap.get(i.getConceptId())
                         .stream()
                         .map(KlLibraryInfo::getName)
-                        .collect(Collectors.joining(CommonEnum.splitSymbol.getName())));
+                        .collect(Collectors.joining("、")));
                 i.setModifierName(respDTO.data.get(i.getModifierId()));
             });
         }