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 a60fc8c691..3314d1dbbc 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 @@ -123,12 +123,8 @@ public class IssuesService { @Resource StringRedisTemplate stringRedisTemplate; @Resource - IssueFileMapper issueFileMapper; - @Resource private AttachmentService attachmentService; @Resource - private AttachmentModuleRelationMapper attachmentModuleRelationMapper; - @Resource private ProjectMapper projectMapper; @Resource SqlSessionFactory sqlSessionFactory; diff --git a/test-track/backend/src/main/java/io/metersphere/service/PlatformPluginService.java b/test-track/backend/src/main/java/io/metersphere/service/PlatformPluginService.java index 87ce5c9043..99de6c6cec 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/PlatformPluginService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/PlatformPluginService.java @@ -30,8 +30,6 @@ public class PlatformPluginService { private BasePluginService basePluginService; @Resource private BaseIntegrationService baseIntegrationService; - @Resource - private BaseProjectService baseProjectService; private PlatformPluginManager pluginManager; diff --git a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java index 74f6de1570..b6e60b98d0 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java @@ -428,9 +428,10 @@ public class TestCaseService { } issuesRequest.setProjectId(testCase.getProjectId()); issuesRequest.setWorkspaceId(project.getWorkspaceId()); - IssueFactory.createPlatform(issuesService.getPlatform(testCase.getProjectId()), issuesRequest) - .updateDemandIssueLink(testCase, project); - + IssuesPlatform platform = IssueFactory.createPlatform(issuesService.getPlatform(testCase.getProjectId()), issuesRequest); + if (platform != null) { + platform.updateDemandIssueLink(testCase, project); + } } /**