fix(测试跟踪): 用例导入模块名前后有空格导入失败

--bug=1018892 --user=陈建星 【测试跟踪】github #18910,用例导入,按用例模板将必填字段填写完成,上传表格用例到ms报错 https://www.tapd.cn/55049933/s/1277563
This commit is contained in:
chenjianxing 2022-10-26 11:11:24 +08:00 committed by jianxing
parent 0382323ff7
commit 0ea14fe269

View File

@ -295,7 +295,7 @@ public class NodeTreeService<T extends TreeNodeDTO> {
StringBuilder path = new StringBuilder(rootPath);
path.append("/" + nodeName);
path.append("/" + nodeName.trim());
String pid;
//创建过不创建
@ -309,7 +309,7 @@ public class NodeTreeService<T extends TreeNodeDTO> {
}
while (pathIterator.hasNext()) {
String nextNodeName = pathIterator.next();
String nextNodeName = pathIterator.next().trim();
path.append("/" + nextNodeName);
if (pathMap.get(path.toString()) != null) {
pid = pathMap.get(path.toString());