fix(测试跟踪): 关联jira缺陷,保存用例报错

This commit is contained in:
chenjianxing 2022-11-21 14:04:27 +08:00 committed by jianxing
parent eec1f5f362
commit 3fd9430b47
3 changed files with 4 additions and 9 deletions

View File

@ -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;

View File

@ -30,8 +30,6 @@ public class PlatformPluginService {
private BasePluginService basePluginService;
@Resource
private BaseIntegrationService baseIntegrationService;
@Resource
private BaseProjectService baseProjectService;
private PlatformPluginManager pluginManager;

View File

@ -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);
}
}
/**