“djh”
3 days ago c26e227abe288476c11b0a8b7875045e71efa14c
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.*;
@@ -86,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);
    }
@@ -239,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);
    }