fix: 删除无用代码
This commit is contained in:
parent
378426795e
commit
5ee058d3a9
|
@ -234,31 +234,6 @@ public class IssueTemplateService extends TemplateBaseService {
|
|||
return issueTemplateDao;
|
||||
}
|
||||
|
||||
public IssueTemplateDao getTemplate(String projectId, boolean thirdPartTemplate) {
|
||||
Project project = projectService.getProjectById(projectId);
|
||||
if (thirdPartTemplate) {
|
||||
|
||||
}
|
||||
String issueTemplateId = project.getIssueTemplateId();
|
||||
IssueTemplate issueTemplate;
|
||||
IssueTemplateDao issueTemplateDao = new IssueTemplateDao();
|
||||
if (StringUtils.isNotBlank(issueTemplateId)) {
|
||||
issueTemplate = issueTemplateMapper.selectByPrimaryKey(issueTemplateId);
|
||||
if (issueTemplate == null) {
|
||||
issueTemplate = getDefaultTemplate(project.getWorkspaceId());
|
||||
}
|
||||
} else {
|
||||
issueTemplate = getDefaultTemplate(project.getWorkspaceId());
|
||||
}
|
||||
if (!project.getPlatform().equals(issueTemplate.getPlatform())) {
|
||||
MSException.throwException("请在项目中配置缺陷模板");
|
||||
}
|
||||
BeanUtils.copyBean(issueTemplateDao, issueTemplate);
|
||||
List<CustomFieldDao> result = customFieldService.getCustomFieldByTemplateId(issueTemplate.getId());
|
||||
issueTemplateDao.setCustomFields(result);
|
||||
return issueTemplateDao;
|
||||
}
|
||||
|
||||
public String getLogDetails(String id, List<CustomFieldTemplate>newCustomFieldTemplates) {
|
||||
List<DetailColumn> columns = new LinkedList<>();
|
||||
IssueTemplate templateWithBLOBs = issueTemplateMapper.selectByPrimaryKey(id);
|
||||
|
|
Loading…
Reference in New Issue