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

This commit is contained in:
wx 2023-02-21 17:27:13 +08:00 committed by song-cc-rock
parent 577e5c2d49
commit 8669e0ec97
1 changed files with 1 additions and 1 deletions

View File

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