diff --git a/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java b/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java index c313481d95..060d0d4ba4 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java @@ -173,6 +173,7 @@ public class IssuesService { issues.setPlatform(project.getPlatform()); insertIssues(issues); issuesRequest.setId(issues.getId()); + issuesRequest.setPlatformId(issues.getPlatformId()); // 用例与第三方缺陷平台中的缺陷关联 handleTestCaseIssues(issuesRequest); @@ -621,13 +622,13 @@ public class IssuesService { issuesRequest.setProjectId(SessionUtils.getCurrentProjectId()); List issuesDaos = listByWorkspaceId(issuesRequest); if (CollectionUtils.isNotEmpty(issuesDaos)) { - issuesDaos.parallelStream().forEach(issuesDao -> { + issuesDaos.forEach(issuesDao -> { delete(issuesDao.getId()); }); } } else { if (CollectionUtils.isNotEmpty(request.getBatchDeleteIds())) { - request.getBatchDeleteIds().parallelStream().forEach(id -> delete(id)); + request.getBatchDeleteIds().forEach(id -> delete(id)); } } } @@ -1775,13 +1776,13 @@ public class IssuesService { } public void saveImportData(List issues) { - issues.parallelStream().forEach(issue -> { + issues.forEach(issue -> { addIssues(issue, null); }); } public void updateImportData(List issues) { - issues.parallelStream().forEach(issue -> { + issues.forEach(issue -> { updateIssues(issue); }); }