This commit is contained in:
Captain.B 2020-05-06 14:52:48 +08:00
parent 4ddf036a09
commit 23d759ba59
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ public class TestCaseNodeService {
List<TestCaseNodeDTO> childrens = Optional.ofNullable(nodeTree.getChildren()).orElse(new ArrayList<>()); List<TestCaseNodeDTO> childrens = Optional.ofNullable(nodeTree.getChildren()).orElse(new ArrayList<>());
lowerNodes.forEach(node -> { lowerNodes.forEach(node -> {
if (node.getpId().equals(rootNode.getId())){ if (node.getPId().equals(rootNode.getId())){
childrens.add(buildNodeTree(nodeLevelMap, node)); childrens.add(buildNodeTree(nodeLevelMap, node));
nodeTree.setChildren(childrens); nodeTree.setChildren(childrens);
} }
@ -327,7 +327,7 @@ public class TestCaseNodeService {
private Integer insertTestCaseNode(String nodeName, Integer pId, String projectId, Integer level) { private Integer insertTestCaseNode(String nodeName, Integer pId, String projectId, Integer level) {
TestCaseNode testCaseNode = new TestCaseNode(); TestCaseNode testCaseNode = new TestCaseNode();
testCaseNode.setName(nodeName.trim()); testCaseNode.setName(nodeName.trim());
testCaseNode.setpId(pId); testCaseNode.setPId(pId);
testCaseNode.setProjectId(projectId); testCaseNode.setProjectId(projectId);
testCaseNode.setCreateTime(System.currentTimeMillis()); testCaseNode.setCreateTime(System.currentTimeMillis());
testCaseNode.setUpdateTime(System.currentTimeMillis()); testCaseNode.setUpdateTime(System.currentTimeMillis());