fix(测试跟踪) 批量删除功能用例后,未全部删除devops平台需求关联的功能用例链接

This commit is contained in:
wx 2023-02-21 17:27:13 +08:00 committed by CaptainB
parent 7d86f5f9b8
commit b749ff3d9f
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ public class TestCaseService {
// AzureDevops 才处理
if (StringUtils.equals(project.getPlatform(), IssuesManagePlatform.AzureDevops.name())) {
testcaseIds.forEach(id -> {
TestCaseWithBLOBs testCaseWithBLOBs = testCaseMapper.selectByPrimaryKey(testcaseIds.get(0));
TestCaseWithBLOBs testCaseWithBLOBs = testCaseMapper.selectByPrimaryKey(id);
if (testCaseWithBLOBs != null) {
EditTestCaseRequest request = new EditTestCaseRequest();
BeanUtils.copyBean(request, testCaseWithBLOBs);