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

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

View File

@ -123,12 +123,8 @@ public class IssuesService {
@Resource @Resource
StringRedisTemplate stringRedisTemplate; StringRedisTemplate stringRedisTemplate;
@Resource @Resource
IssueFileMapper issueFileMapper;
@Resource
private AttachmentService attachmentService; private AttachmentService attachmentService;
@Resource @Resource
private AttachmentModuleRelationMapper attachmentModuleRelationMapper;
@Resource
private ProjectMapper projectMapper; private ProjectMapper projectMapper;
@Resource @Resource
SqlSessionFactory sqlSessionFactory; SqlSessionFactory sqlSessionFactory;

View File

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

View File

@ -428,9 +428,10 @@ public class TestCaseService {
} }
issuesRequest.setProjectId(testCase.getProjectId()); issuesRequest.setProjectId(testCase.getProjectId());
issuesRequest.setWorkspaceId(project.getWorkspaceId()); issuesRequest.setWorkspaceId(project.getWorkspaceId());
IssueFactory.createPlatform(issuesService.getPlatform(testCase.getProjectId()), issuesRequest) IssuesPlatform platform = IssueFactory.createPlatform(issuesService.getPlatform(testCase.getProjectId()), issuesRequest);
.updateDemandIssueLink(testCase, project); if (platform != null) {
platform.updateDemandIssueLink(testCase, project);
}
} }
/** /**