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/InternalAuditController.java | 189 +++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 189 insertions(+), 0 deletions(-)
diff --git a/multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/InternalAuditController.java b/multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/InternalAuditController.java
index e23faaa..87ee6d3 100644
--- a/multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/InternalAuditController.java
+++ b/multi-admin/src/main/java/com/gkhy/exam/admin/controller/web/InternalAuditController.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.*;
@@ -23,6 +24,15 @@
private InternalAuditEvaluateService evaluateService;
@Autowired
private InternalAuditCarryService carryService;
+
+ @Autowired
+ private ProjectResearchService researchService;
+
+ @Autowired
+ private ProjectDeliveryService deliveryService;
+
+ @Autowired
+ private AnnualReportService annualReportService;
@Autowired
@@ -77,6 +87,21 @@
@GetMapping("/plan/deleted")
public CommonResult deletedQuality(@RequestParam("planId") Integer planId){
return planService.deletedPlan(planId);
+ }
+
+ @RepeatSubmit
+ @ApiOperation(value = "一键复制内审策划")
+ @ApiImplicitParams({
+ @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "int", required = false, value = "公司id,不传则使用当前登录用户公司"),
+ @ApiImplicitParam(paramType = "query", name = "sourceYear", dataType = "String", required = true, value = "源年份"),
+ @ApiImplicitParam(paramType = "query", name = "targetYear", dataType = "String", required = true, value = "目标年份"),
+ })
+ @GetMapping("/plan/copy")
+ public CommonResult copyInternalAuditPlan(
+ @RequestParam(required = false) Integer companyId,
+ @RequestParam String sourceYear,
+ @RequestParam String targetYear) {
+ return planService.copyInternalAuditPlan(companyId, sourceYear, targetYear);
}
@@ -230,6 +255,22 @@
return carryService.deletedCarry(carryId);
}
+ @RepeatSubmit
+ @ApiOperation(value = "一键复制内审计划实施")
+ @ApiImplicitParams({
+ @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "int", required = false, value = "公司id,不传则使用当前登录用户公司"),
+ @ApiImplicitParam(paramType = "query", name = "sourceYear", dataType = "String", required = true, value = "源年份"),
+ @ApiImplicitParam(paramType = "query", name = "targetYear", dataType = "String", required = true, value = "目标年份"),
+ })
+ @GetMapping("/carry/copy")
+ public CommonResult copyInternalAuditCarry(
+ @RequestParam(required = false) Integer companyId,
+ @RequestParam String sourceYear,
+ @RequestParam String targetYear) {
+ return carryService.copyInternalAuditCarry(companyId, sourceYear, targetYear);
+ }
+
+
@@ -282,8 +323,156 @@
return customerService.deletedCustomer(customerId);
}
+ /**
+ * 在研项目
+ * @param projectResearch
+ * @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("/research/list")
+ public CommonResult listResearch(ProjectResearch projectResearch){
+ return CommonResult.success(researchService.selectResearchList(projectResearch));
+ }
+ /**
+ * 在研项目新增
+ * @param projectResearch
+ * @return
+ */
+ @ApiOperation(value = "在研项目新增")
+ @PostMapping("/research/insert")
+ public CommonResult insertResearch(@RequestBody ProjectResearch projectResearch){
+ return researchService.insertResearch(projectResearch);
+ }
+
+ /**
+ * 在研项目修改
+ * @param projectResearch
+ * @return
+ */
+ @ApiOperation(value = "在研项目修改")
+ @PostMapping("/research/update")
+ public CommonResult updateResearch(@RequestBody ProjectResearch projectResearch){
+ return researchService.updateResearch(projectResearch);
+ }
+
+ /**
+ * 在研项目删除
+ * @param researchId
+ * @return
+ */
+ @ApiOperation(value = "在研项目删除")
+ @GetMapping("/research/deleted")
+ public CommonResult deletedResearch(@RequestParam("researchId") Integer researchId){
+ return researchService.deletedResearch(researchId);
+ }
+
+
+ /**
+ * 交付项目
+ * @param projectDelivery
+ * @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("/delivery/list")
+ public CommonResult listDelivery(ProjectDelivery projectDelivery){
+ return CommonResult.success(deliveryService.selectDeliveryList(projectDelivery));
+ }
+
+
+ /**
+ *交付项目新增
+ * @param projectDelivery
+ * @return
+ */
+ @ApiOperation(value = "交付项目新增")
+ @PostMapping("/delivery/insert")
+ public CommonResult insertDelivery(@RequestBody ProjectDelivery projectDelivery){
+ return deliveryService.insertDelivery(projectDelivery);
+ }
+
+ /**
+ * 交付项目修改
+ * @param projectDelivery
+ * @return
+ */
+ @ApiOperation(value = "交付项目修改")
+ @PostMapping("/delivery/update")
+ public CommonResult updateDelivery(@RequestBody ProjectDelivery projectDelivery){
+ return deliveryService.updateDelivery(projectDelivery);
+ }
+
+ /**
+ * 交付项目删除
+ * @param deliveryId
+ * @return
+ */
+ @ApiOperation(value = "交付项目删除")
+ @GetMapping("/delivery/deleted")
+ public CommonResult deletedDelivery(@RequestParam("deliveryId") Integer deliveryId){
+ return deliveryService.deletedDelivery(deliveryId);
+ }
+
+
+
+ /**
+ * 年度报告
+ * @param annualReport
+ * @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("/annual/list")
+ public CommonResult listAnnual(AnnualReport annualReport){
+ return CommonResult.success(annualReportService.selectAnnualList(annualReport));
+ }
+
+
+ /**
+ *年度报告新增
+ * @param annualReport
+ * @return
+ */
+ @ApiOperation(value = "年度报告新增")
+ @PostMapping("/annual/insert")
+ public CommonResult insertAnnual(@RequestBody AnnualReport annualReport){
+ return annualReportService.insertAnnual(annualReport);
+ }
+
+ /**
+ * 年度报告修改
+ * @param annualReport
+ * @return
+ */
+ @ApiOperation(value = "年度报告修改")
+ @PostMapping("/annual/update")
+ public CommonResult updateAnnual(@RequestBody AnnualReport annualReport){
+ return annualReportService.updateAnnual(annualReport);
+ }
+
+ /**
+ * 年度报告删除
+ * @param annualId
+ * @return
+ */
+ @ApiOperation(value = "年度报告删除")
+ @GetMapping("/annual/deleted")
+ public CommonResult deletedAnnual(@RequestParam("annualId") Integer annualId){
+ return annualReportService.deletedAnnual(annualId);
+ }
+
--
Gitblit v1.9.2