| | |
| | | */ |
| | | @Autowired(required = false) |
| | | private ICodeRuleService codeRuleService; |
| | | /*** |
| | | * 分类模板服务 |
| | | */ |
| | | @Autowired(required = false) |
| | | private ICodeClstemplateService plCodeClstemplateService; |
| | | |
| | | /** |
| | | * 使用分类的主键获取可以使用的模板对象 |
| | | * |
| | |
| | | */ |
| | | @Override |
| | | public CodeClassifyTemplateVO getUsedTemplateByClassifyOid(String codeClassifyOid, boolean hasAttr) { |
| | | List<CodeClassifyTemplateVO> templateVOs=new ArrayList<>(); |
| | | //templateVOs = codeClassifyTemplateAttrService.listReleaseTemplateByClassifyOid(codeClassifyOid, hasAttr); |
| | | return templateVOs.get(templateVOs.size() - 1); |
| | | CodeClassifyTemplateVO templateVO=new CodeClassifyTemplateVO(); |
| | | List<CodeClassifyTemplateVO>templateVOs=plCodeClstemplateService.listReleaseTemplateByClassifyOid(codeClassifyOid,hasAttr); |
| | | if(templateVOs.size()>0){ |
| | | templateVO= templateVOs.get(templateVOs.size() - 1); |
| | | } |
| | | return templateVO; |
| | | } |
| | | |
| | | |