From f99d902db3c31e57229439962abd2746bb06868d Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Wed, 02 Jul 2025 16:33:23 +0800
Subject: [PATCH] 新增
---
multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/QualityController.java | 156 ++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 145 insertions(+), 11 deletions(-)
diff --git a/multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/QualityController.java b/multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/QualityController.java
index 17951ea..8d7905e 100644
--- a/multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/QualityController.java
+++ b/multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/QualityController.java
@@ -1,17 +1,9 @@
package com.gkhy.exam.admin.controller.web;
import com.gkhy.exam.common.api.CommonResult;
-import com.gkhy.exam.system.domain.CompanyQualityPolicy;
-import com.gkhy.exam.system.domain.Quality;
-import com.gkhy.exam.system.domain.QualityAccomplish;
-import com.gkhy.exam.system.domain.QualityDecompose;
-import com.gkhy.exam.system.domain.req.DecomposeTargetReq;
-import com.gkhy.exam.system.domain.req.QualityReq;
-import com.gkhy.exam.system.domain.req.QualityTargetReq;
-import com.gkhy.exam.system.service.QualityAccomplishService;
-import com.gkhy.exam.system.service.QualityDecomposeService;
-import com.gkhy.exam.system.service.QualityService;
-import com.gkhy.exam.system.service.QualityTargetService;
+import com.gkhy.exam.system.domain.*;
+import com.gkhy.exam.system.domain.req.*;
+import com.gkhy.exam.system.service.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
@@ -35,6 +27,9 @@
@Autowired
private QualityDecomposeService qualityDecomposeService;
+
+ @Autowired
+ private CatalogueService catalogueService;
/**
@@ -199,4 +194,143 @@
}
+ /**
+ * 质量管理体系运行列表
+ * @param catalogueReq
+ * @return
+ */
+ @ApiOperation(value = "质量管理体系运行列表")
+ @GetMapping("/catalogue/list")
+ public CommonResult listCatalogue(CatalogueReq catalogueReq){
+ return CommonResult.success(catalogueService.selectCatalogueList(catalogueReq));
+ }
+
+
+ /**
+ * 质量管理体系运行新增
+ * @param catalogue
+ * @return
+ */
+ @ApiOperation(value = "质量管理体系运行新增")
+ @PostMapping("/catalogue/insert")
+ public CommonResult insertCatalogue(@RequestBody Catalogue catalogue){
+ return catalogueService.insertCatalogue(catalogue);
+ }
+
+ /**
+ * 质量管理体系运行修改
+ * @param catalogue
+ * @return
+ */
+ @ApiOperation(value = "质量管理体系运行修改")
+ @PostMapping("/catalogue/update")
+ public CommonResult updateCatalogue(@RequestBody Catalogue catalogue){
+ return catalogueService.updateCatalogue(catalogue);
+ }
+
+ /**
+ * 质量管理体系运行删除
+ * @param catalogueId
+ * @return
+ */
+ @ApiOperation(value = "质量管理体系运行删除")
+ @GetMapping("/catalogue/deleted")
+ public CommonResult deletedCatalogue(@RequestParam("catalogueId") Integer catalogueId){
+ return catalogueService.deletedCatalogue(catalogueId);
+ }
+
+
+
+ /**
+ * 目录数据列表
+ * @param catalogueReq
+ * @return
+ */
+ @ApiOperation(value = "目录数据列表")
+ @GetMapping("/catalogueData/list")
+ public CommonResult listCatalogueData(CatalogueReq catalogueReq){
+ return CommonResult.success(catalogueService.selectCatalogueDataList(catalogueReq));
+ }
+
+
+ /**
+ * 目录数据新增
+ * @param catalogue
+ * @return
+ */
+ @ApiOperation(value = "目录数据新增")
+ @PostMapping("/catalogueData/insert")
+ public CommonResult insertCatalogueData(@RequestBody CatalogueDataReq catalogue){
+ return catalogueService.insertCatalogueData(catalogue);
+ }
+
+ /**
+ * 目录数据修改
+ * @param catalogue
+ * @return
+ */
+ @ApiOperation(value = "目录数据修改")
+ @PostMapping("/catalogueData/update")
+ public CommonResult updateCatalogueData(@RequestBody CatalogueDataReq catalogue){
+ return catalogueService.updateCatalogueData(catalogue);
+ }
+
+ /**
+ * 目录数据删除
+ * @param catalogueDataId
+ * @return
+ */
+ @ApiOperation(value = "目录数据删除")
+ @GetMapping("/catalogueData/deleted")
+ public CommonResult deletedCatalogueData(@RequestParam("catalogueDataId") Integer catalogueDataId){
+ return catalogueService.deletedCatalogueData(catalogueDataId);
+ }
+
+ /**
+ * 目录数据文件列表
+ * @param catalogueReq
+ * @return
+ */
+ @ApiOperation(value = "目录数据文件列表")
+ @GetMapping("/catalogueDataFile/list")
+ public CommonResult listCatalogueDataFile(CatalogueReq catalogueReq){
+ return CommonResult.success(catalogueService.selectCatalogueDataFileList(catalogueReq));
+ }
+
+
+ /**
+ * 目录数据文件新增
+ * @param catalogueDataFile
+ * @return
+ */
+ @ApiOperation(value = "目录数据文件新增")
+ @PostMapping("/catalogueDataFile/insert")
+ public CommonResult insertCatalogueDataFile(@RequestBody CatalogueDataFile catalogueDataFile){
+ return catalogueService.insertCatalogueDataFile(catalogueDataFile);
+ }
+
+ /**
+ * 目录数据文件修改
+ * @param catalogueDataFile
+ * @return
+ */
+ @ApiOperation(value = "目录数据文件修改")
+ @PostMapping("/catalogueDataFile/update")
+ public CommonResult updateCatalogueDataFile(@RequestBody CatalogueDataFile catalogueDataFile){
+ return catalogueService.updateCatalogueDataFile(catalogueDataFile);
+ }
+
+ /**
+ * 目录数据文件删除
+ * @param dataFileId
+ * @return
+ */
+ @ApiOperation(value = "目录数据文件删除")
+ @GetMapping("/catalogueDataFile/deleted")
+ public CommonResult deletedCatalogueDataFile(@RequestParam("dataFileId") Integer dataFileId){
+ return catalogueService.deletedCatalogueDataFile(dataFileId);
+ }
+
+
+
}
--
Gitblit v1.9.2