From 3d400cfcc41df9bc35678751f6f5afb5cf6c1ae5 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期三, 03 十二月 2025 14:52:54 +0800
Subject: [PATCH] 产品服务实现过程
---
multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/TemplateController.java | 28 ++++++++++++++++++++--------
1 files changed, 20 insertions(+), 8 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 afdce38..e720332 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,5 +1,6 @@
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.*;
import com.gkhy.exam.system.service.QualitySystemPlanService;
@@ -26,7 +27,6 @@
/**
* 行业模版
- * @param companyId
* @return
*/
@ApiOperation(value = "标准化模版(分页)")
@@ -34,11 +34,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));
}
/**
@@ -139,14 +141,22 @@
* @return
*/
@ApiOperation(value = "质量体系策划列表(分页)")
- @ApiImplicitParams({
- @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
- @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"),
- })
@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);
+ }
+
/**
@@ -154,6 +164,7 @@
* @param qualitySystemPlan
* @return
*/
+ @RepeatSubmit
@ApiOperation(value = "质量体系策划新增")
@PostMapping("/insert")
public CommonResult insertQualitySystemPlan(@RequestBody QualitySystemPlan qualitySystemPlan){
@@ -165,6 +176,7 @@
* @param qualitySystemPlan
* @return
*/
+ @RepeatSubmit
@ApiOperation(value = "质量体系策划修改")
@PostMapping("/update")
public CommonResult updateQualitySystemPlan(@RequestBody QualitySystemPlan qualitySystemPlan){
--
Gitblit v1.9.2