fix(测试跟踪): 关联jira缺陷,保存用例报错
This commit is contained in:
parent
db47ab5f5b
commit
2043466cd2
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue