zss
2025-02-20 a465f67fdd32f818f35938eded708b166b1cc1f7
cnas-manage/src/main/java/com/ruoyi/manage/controller/InternalPlanController.java
@@ -2,13 +2,15 @@
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.manage.annotation.ValueAuth;
import com.ruoyi.manage.annotation.ValueClassify;
import com.deepoove.poi.data.style.*;
import com.ruoyi.common.core.domain.Result;
import com.ruoyi.common.utils.JackSonUtil;
import com.ruoyi.manage.dto.InternalPlanDto;
import com.ruoyi.manage.pojo.InternalPlan;
import com.ruoyi.manage.service.InternalPlanService;
import com.ruoyi.manage.utils.JackSonUtil;
import com.ruoyi.manage.vo.Result;
import com.deepoove.poi.data.style.*;
import com.deepoove.poi.data.style.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
@@ -36,15 +38,13 @@
    /**
     * 内审年度计划分页查询
     * @param data
     * @param
     * @return
     */
    @ValueAuth
    @ApiOperation(value = "内审年度计划分页查询")
    @PostMapping("/pageInternalPlan")
    public Result<IPage<InternalPlanDto>> pageInternalPlan(@RequestBody Map<String, Object> data) throws Exception {
        Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class);
        InternalPlan internalPlan = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), InternalPlan.class);
    public Result<IPage<InternalPlanDto>> pageInternalPlan(Page page,InternalPlan internalPlan) throws Exception {
        return Result.success(internalPlanService.pageInternalPlan(page, internalPlan));
    }
@@ -52,7 +52,7 @@
     * 内审年度计划新增
     * @return
     */
    @ValueAuth
    @ApiOperation(value = "内审年度计划新增")
    @PostMapping("/addInternalPlan")
    public Result addInternalPlan(@RequestBody InternalPlanDto internalPlan){
@@ -63,7 +63,7 @@
     * 内审年度计划修改
     * @return
     */
    @ValueAuth
    @ApiOperation(value = "内审年度计划修改")
    @PostMapping("/updateInternalPlan")
    public Result updateInternalPlan(@RequestBody InternalPlanDto internalPlan){
@@ -74,7 +74,7 @@
     * 内审年度计划删除
     * @return
     */
    @ValueAuth
    @ApiOperation(value = "内审年度计划删除")
    @GetMapping("/delInternalPlan")
    public Result delInternalPlan(Integer planId){
@@ -85,7 +85,7 @@
     * 内审年度计划查看详情
     * @return
     */
    @ValueAuth
    @ApiOperation(value = "内审年度计划查看详情")
    @GetMapping("/getInternalPlanOne")
    public Result<InternalPlanDto> getInternalPlanOne(Integer planId){
@@ -97,7 +97,6 @@
     * 内审年度计划审核
     * @return
     */
    @ValueClassify("内审年度计划")
    @ApiOperation(value = "内审年度计划审核")
    @PostMapping("/examineInternalPlan")
    public Result examineInternalPlan(@RequestBody InternalPlanDto internalPlanDto){
@@ -108,7 +107,6 @@
     * 内审年度计划批准
     * @return
     */
    @ValueClassify("内审年度计划")
    @ApiOperation(value = "内审实施计划批准")
    @PostMapping("/ratifyInternalPlan")
    public Result ratifyInternalPlan(@RequestBody InternalPlanDto internalPlanDto){
@@ -119,7 +117,7 @@
     * 导出内审年度计划
     * @return
     */
    @ValueAuth
    @ApiOperation(value = "导出内审年度计划")
    @GetMapping("/exportInternalPlan")
    public void exportInternalPlan(Integer planId, HttpServletResponse response){