zss
2025-03-04 8b997bf7de8e2bc23a337261e19e5e43bd48c67e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package com.ruoyi.manage.controller;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.common.core.domain.Result;
import com.ruoyi.common.utils.JackSonUtil;
import com.ruoyi.manage.pojo.ManageRecordAudit;
import com.ruoyi.manage.service.ManageRecordAuditService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.Api;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;
 
/**
 * <p>
 * 文件修订申请审批记录 前端控制器
 * </p>
 *
 * @author 芯导软件(江苏)有限公司
 * @since 2024-11-14 10:29:18
 */
@Api(tags = "记录的控制")
@RestController
@RequestMapping("/manageRecordAudit")
public class ManageRecordAuditController {
 
    @Resource
    private ManageRecordAuditService manageRecordAuditService;
 
    @ApiOperation(value = "分页查询文件修订申请审批记录")
    @GetMapping("/pageManageRecordAudit")
    public Result pageManageRecordAudit(Page page,ManageRecordAudit manageRecordAudit) throws Exception {
        return Result.success(manageRecordAuditService.pageManageRecordAudit(page, manageRecordAudit));
    }
 
    @ApiOperation(value = "新增文件修订申请审批记录")
    @PostMapping("/addManageRecordAudit")
    public Result addManageRecordAudit( ManageRecordAudit manageRecordAudit){
        return Result.success(manageRecordAuditService.addManageRecordAudit(manageRecordAudit));
    }
 
    @ApiOperation(value = "编辑文件修订申请审批记录")
    @PostMapping("/doManageRecordAudit")
    public Result doManageRecordAudit(ManageRecordAudit manageRecordAudit){
        return Result.success(manageRecordAuditService.doManageRecordAudit(manageRecordAudit));
    }
 
    @ApiOperation(value = "删除文件修订申请审批记录")
    @DeleteMapping("/delManageRecordAudit")
    public Result delManageRecordAudit(Integer id){
        return Result.success(manageRecordAuditService.removeById(id));
    }
 
    @ApiOperation(value = "批准文件修订申请审批记录")
    @PostMapping("/ratifyManageRecordAudit")
    public Result ratifyManageRecordAudit(@RequestBody Map<String, Integer> param){
        Integer id = param.get("id");
        return Result.success(manageRecordAuditService.ratifyManageRecordAudit(id));
    }
 
    @ApiOperation(value = "申请部门主管意见文件修订申请审批记录")
    @PostMapping("/manageRecordAudit1")
    public void manageRecordAudit1(){
    }
 
    @ApiOperation(value = "原制定部门意见文件修订申请审批记录")
    @PostMapping("/manageRecordAudit2")
    public void manageRecordAudit2(){
    }
 
    @ApiOperation(value = "原审核部门意见文件修订申请审批记录")
    @PostMapping("/manageRecordAudit3")
    public void manageRecordAudit3(){
    }
 
    @ApiOperation(value = "导出文件修订申请审批记录")
    @GetMapping("/exportOutManageRecordAudit")
    public Result exportOutManageRecordAudit(ManageRecordAudit manageRecordAudit, HttpServletResponse response) throws Exception {
        return Result.success(manageRecordAuditService.exportOutManageRecordAudit(manageRecordAudit,response));
    }
 
 
}