Browse Source

fix bug:空间对象的本地名称为对象的问题

lijie 2 years ago
parent
commit
9db82c6248

+ 1 - 1
adm-business/adm-server/src/main/java/com/persagy/adm/server/backstage/service/impl/AbstractDataHandler.java

@@ -260,7 +260,7 @@ public abstract class AbstractDataHandler implements DataHandlerService {
         List<Parameter> list = parameters.toJavaList(Parameter.class);
         Optional<Parameter> nameParam = list.stream().filter(parameter -> NAME_VALUE.equals(parameter.getName())).findFirst();
         Optional<Parameter> codeParam = list.stream().filter(parameter -> CODE_VALUE.equals(parameter.getName())).findFirst();
-        return StrUtil.join(StrUtil.EMPTY,nameParam.isPresent()?nameParam.get():name,codeParam.isPresent()?codeParam.get():StrUtil.EMPTY);
+        return StrUtil.join(StrUtil.EMPTY,nameParam.isPresent()?nameParam.get().getValue():name,codeParam.isPresent()?codeParam.get().getValue():StrUtil.EMPTY);
     }
     /**
      * 根据对象类型获取旧对象id数组