From 57527ccc31b1ba518036abfaa5e9a55ad3f97e12 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Tue, 02 Dec 2025 15:58:09 +0800
Subject: [PATCH] 修改内审

---
 multi-system/src/main/java/com/gkhy/exam/system/service/impl/StandardizedTemplateServiceImpl.java |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/StandardizedTemplateServiceImpl.java b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/StandardizedTemplateServiceImpl.java
index 7a8eb90..809322f 100644
--- a/multi-system/src/main/java/com/gkhy/exam/system/service/impl/StandardizedTemplateServiceImpl.java
+++ b/multi-system/src/main/java/com/gkhy/exam/system/service/impl/StandardizedTemplateServiceImpl.java
@@ -19,6 +19,7 @@
 import org.springframework.stereotype.Service;
 
 import java.time.LocalDateTime;
+import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -48,16 +49,25 @@
     @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> companyIndustryTemplates = standardizedTemplateMapper.selectStandardizedTemplateList(companyId, templateType);
-        return CommonPage.restPage(companyIndustryTemplates);
+        List<StandardizedTemplate> standardizedTemplates =new ArrayList<>();
+        //templateType==2 || templateType==10 ||
+        if ( templateType == 3){
+            standardizedTemplates = standardizedTemplateMapper.selectStandardizedTemplateListV2(standardizedTemplate);
+        }else {
+            standardizedTemplates = standardizedTemplateMapper.selectStandardizedTemplateList(standardizedTemplate);
+        }
+
+        return CommonPage.restPage(standardizedTemplates);
     }
 
     @Override
@@ -176,7 +186,11 @@
     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());
         //部门

--
Gitblit v1.9.2