fix: 删除无用代码

This commit is contained in:
chenjianxing 2021-12-13 21:05:32 +08:00 committed by jianxing
parent 378426795e
commit 5ee058d3a9
1 changed files with 0 additions and 25 deletions

View File

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