| | |
| | | @Autowired |
| | | private CustomerService customerService; |
| | | @Override |
| | | public CommonPage selectStandardizedTemplateList(Integer companyId, Integer templateType) { |
| | | public CommonPage selectStandardizedTemplateList(StandardizedTemplate standardizedTemplate) { |
| | | boolean admin = SecurityUtils.adminUser(); |
| | | Integer companyId = standardizedTemplate.getCompanyId(); |
| | | Integer templateType = standardizedTemplate.getTemplateType(); |
| | | if (!admin){ |
| | | if (companyId==null){ |
| | | companyId = SecurityUtils.getCompanyId().intValue(); |
| | |
| | | } |
| | | PageUtils.startPage(); |
| | | List<StandardizedTemplate> standardizedTemplates =new ArrayList<>(); |
| | | if (templateType==2 || templateType==10 || templateType == 3){ |
| | | standardizedTemplates = standardizedTemplateMapper.selectStandardizedTemplateListV2(companyId, templateType, null); |
| | | //templateType==2 || templateType==10 || |
| | | if ( templateType == 3){ |
| | | standardizedTemplates = standardizedTemplateMapper.selectStandardizedTemplateListV2(standardizedTemplate); |
| | | }else { |
| | | standardizedTemplates = standardizedTemplateMapper.selectStandardizedTemplateList(companyId, templateType); |
| | | standardizedTemplates = standardizedTemplateMapper.selectStandardizedTemplateList(standardizedTemplate); |
| | | } |
| | | |
| | | return CommonPage.restPage(standardizedTemplates); |
| | |
| | | public CommonResult getStandardizedQualityByCompanyId(Integer companyId) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | //程序文件 |
| | | List<StandardizedTemplate> companyIndustryTemplates = standardizedTemplateMapper.selectStandardizedTemplateList(companyId, 4); |
| | | StandardizedTemplate programFile = new StandardizedTemplate(); |
| | | programFile.setTemplateType(4); |
| | | programFile.setCompanyId(companyId); |
| | | programFile.setSort(1); |
| | | List<StandardizedTemplate> companyIndustryTemplates = standardizedTemplateMapper.selectStandardizedTemplateList(programFile); |
| | | //职能分配 |
| | | List<SysFunctionalDistribution> sysFunctionalDistributions = sysFunctionalDistributionMapper.selectListVo(companyId.longValue()); |
| | | //部门 |