fix(测试跟踪): 修改模块名称时删除了模块

--bug=1010489 --user=陈建星 【测试跟踪】-功能用例-脑图-编辑模块名称保存后未生效 https://www.tapd.cn/55049933/s/1108862
This commit is contained in:
chenjianxing 2022-02-23 16:11:26 +08:00 committed by jianxing
parent 884fee0b8a
commit 21b12e340a
1 changed files with 3 additions and 0 deletions

View File

@ -224,6 +224,9 @@ public class TestCaseNodeService extends NodeTreeService<TestCaseNodeDTO> {
});
batchUpdateTestCase(testCases);
}
if (StringUtils.isBlank(request.getParentId())) {
request.setParentId(null);
}
return testCaseNodeMapper.updateByPrimaryKeySelective(request);
}