From c26e227abe288476c11b0a8b7875045e71efa14c Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Thu, 30 Apr 2026 17:30:00 +0800
Subject: [PATCH] 新增修改

---
 multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/TemplateController.java |   91 +++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 86 insertions(+), 5 deletions(-)

diff --git a/multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/TemplateController.java b/multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/TemplateController.java
index ab88a35..a38e6b0 100644
--- a/multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/TemplateController.java
+++ b/multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/TemplateController.java
@@ -1,9 +1,11 @@
 package com.gkhy.exam.admin.controller.web;
 
+import com.gkhy.exam.common.annotation.RepeatSubmit;
 import com.gkhy.exam.common.api.CommonResult;
-import com.gkhy.exam.system.domain.CompanyIndustryTemplate;
+import com.gkhy.exam.system.domain.QualitySystemPlan;
 import com.gkhy.exam.system.domain.StandardizedQuality;
 import com.gkhy.exam.system.domain.StandardizedTemplate;
+import com.gkhy.exam.system.service.QualitySystemPlanService;
 import com.gkhy.exam.system.service.StandardizedTemplateService;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiImplicitParam;
@@ -22,9 +24,11 @@
     @Autowired
     private StandardizedTemplateService standardizedTemplateService;
 
+    @Autowired
+    private QualitySystemPlanService qualitySystemPlanService;
+
     /**
      * 行业模版
-     * @param companyId
      * @return
      */
     @ApiOperation(value = "标准化模版(分页)")
@@ -32,11 +36,13 @@
             @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "int", required = false, value = "公司iD"),
             @ApiImplicitParam(paramType = "query", name = "templateType", dataType = "int", required = true, value = "类型1体系标准2技术标准3应用标准4程序文件5作业指导书6记录及表单7技术类8生产类9其他知识产权"),
             @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = true, value = "页码"),
-            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = true, value = "每页数量")
+            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = true, value = "每页数量"),
+            @ApiImplicitParam(paramType = "query", name = "sort", dataType = "int", required = true, value = "排序类型1正序2倒序"),
+            @ApiImplicitParam(paramType = "query", name = "templateName", dataType = "string", required = false, value = "模板名称")
     })
     @GetMapping("/standardizedTemplate/list")
-    public CommonResult selectStandardizedTemplateList(Integer companyId, @RequestParam("templateType") Integer templateType){
-        return CommonResult.success(standardizedTemplateService.selectStandardizedTemplateList(companyId, templateType));
+    public CommonResult selectStandardizedTemplateList(StandardizedTemplate standardizedTemplate){
+        return CommonResult.success(standardizedTemplateService.selectStandardizedTemplateList(standardizedTemplate));
     }
 
     /**
@@ -49,6 +55,21 @@
     public CommonResult insertStandardizedTemplate(@Validated @RequestBody StandardizedTemplate standardizedTemplate){
         return standardizedTemplateService.insertStandardizedTemplate(standardizedTemplate);
     }
+
+    /**
+     * 企业花名册修改
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "标准化模版置顶")
+    @ApiImplicitParams({
+            @ApiImplicitParam(paramType = "query", name = "id", dataType = "int", required = true, value = "数据id"),
+    })
+    @GetMapping("/standardizedTemplate/top")
+    public CommonResult topCompanyIndustryTemplate(Integer id){
+        return standardizedTemplateService.topStandardizedTemplate(id);
+    }
+
 
     /**
      * 企业花名册修改
@@ -129,4 +150,64 @@
     public CommonResult standardizedQualityDataInfo(@RequestParam("companyId") Integer companyId){
         return standardizedTemplateService.getStandardizedQualityByCompanyId(companyId);
     }
+
+
+    /**
+     * 质量体系策划
+     * @param qualitySystemPlan
+     * @return
+     */
+    @ApiOperation(value = "质量体系策划列表(分页)")
+    @GetMapping("/list")
+    public CommonResult listQualitySystemPlan(QualitySystemPlan qualitySystemPlan){
+        return CommonResult.success(qualitySystemPlanService.selectQualitySystemPlanList(qualitySystemPlan));
+    }
+
+    /**
+     * 质量体系策划id查
+     * @param planId
+     * @return
+     */
+    @ApiOperation(value = "质量体系策划id查")
+    @GetMapping("/listByid")
+    public CommonResult listQualitySystemPlanByid(@RequestParam("planId") Integer planId){
+        return qualitySystemPlanService.listQualitySystemPlanByid(planId);
+    }
+
+
+
+    /**
+     * 质量体系策划新增
+     * @param qualitySystemPlan
+     * @return
+     */
+    @RepeatSubmit
+    @ApiOperation(value = "质量体系策划新增")
+    @PostMapping("/insert")
+    public CommonResult insertQualitySystemPlan(@RequestBody QualitySystemPlan qualitySystemPlan){
+        return qualitySystemPlanService.insertQualitySystemPlan(qualitySystemPlan);
+    }
+
+    /**
+     * 质量体系策划修改
+     * @param qualitySystemPlan
+     * @return
+     */
+    @RepeatSubmit
+    @ApiOperation(value = "质量体系策划修改")
+    @PostMapping("/update")
+    public CommonResult updateQualitySystemPlan(@RequestBody QualitySystemPlan qualitySystemPlan){
+        return qualitySystemPlanService.updateQualitySystemPlan(qualitySystemPlan);
+    }
+
+    /**
+     * 质量体系策划删除
+     * @param planId
+     * @return
+     */
+    @ApiOperation(value = "质量体系策划删除")
+    @GetMapping("/deleted")
+    public CommonResult deletedQualitySystemPlan(@RequestParam("planId") Integer planId){
+        return qualitySystemPlanService.deletedQualitySystemPlan(planId);
+    }
 }

--
Gitblit v1.9.2