zss
6 天以前 51ec98113c6d49d0f7eec4e3c030e55e337e97db
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
package com.yuanchu.mom.controller;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuanchu.mom.annotation.CustomClazzName;
import com.yuanchu.mom.annotation.ValueAuth;
import com.yuanchu.mom.annotation.ValueClassify;
import com.yuanchu.mom.pojo.ManageRecordAudit;
import com.yuanchu.mom.pojo.ManageRecordCancel;
import com.yuanchu.mom.service.ManageRecordAuditService;
import com.yuanchu.mom.utils.JackSonUtil;
import com.yuanchu.mom.vo.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;
 
/**
 * <p>
 * 文件修订申请审批记录 前端控制器
 * </p>
 *
 * @author
 * @since 2024-11-14 10:29:18
 */
@RestController
@RequestMapping("/manageRecordAudit")
 
public class ManageRecordAuditController {
 
    @Resource
    private ManageRecordAuditService manageRecordAuditService;
 
    @ValueClassify(value = "记录的控制")
    @ApiOperation(value = "分页查询文件修订申请审批记录")
    @PostMapping("/pageManageRecordAudit")
    public Result pageManageRecordAudit(@RequestBody Map<String, Object> data) throws Exception {
        Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class);
        ManageRecordAudit manageRecordAudit = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), ManageRecordAudit.class);
        return Result.success(manageRecordAuditService.pageManageRecordAudit(page, manageRecordAudit));
    }
 
    @ValueClassify(value = "记录的控制")
    @ApiOperation(value = "新增文件修订申请审批记录")
    @PostMapping("/addManageRecordAudit")
    public Result addManageRecordAudit( ManageRecordAudit manageRecordAudit){
        return Result.success(manageRecordAuditService.addManageRecordAudit(manageRecordAudit));
    }
 
    @ValueAuth
    @ApiOperation(value = "编辑文件修订申请审批记录")
    @PostMapping("/doManageRecordAudit")
    public Result doManageRecordAudit(ManageRecordAudit manageRecordAudit){
        return Result.success(manageRecordAuditService.doManageRecordAudit(manageRecordAudit));
    }
 
    @ValueClassify(value = "记录的控制")
    @ApiOperation(value = "删除文件修订申请审批记录")
    @PostMapping("/delManageRecordAudit")
    public Result delManageRecordAudit(Integer id){
        return Result.success(manageRecordAuditService.removeById(id));
    }
 
    @ValueClassify(value = "记录的控制")
    @ApiOperation(value = "批准文件修订申请审批记录")
    @PostMapping("/ratifyManageRecordAudit")
    public Result ratifyManageRecordAudit(Integer id){
        return Result.success(manageRecordAuditService.ratifyManageRecordAudit(id));
    }
 
    @ValueClassify(value = "记录的控制")
    @ApiOperation(value = "申请部门主管意见文件修订申请审批记录")
    @PostMapping("/manageRecordAudit1")
    public void manageRecordAudit1(){
    }
 
    @ValueClassify(value = "记录的控制")
    @ApiOperation(value = "原制定部门意见文件修订申请审批记录")
    @PostMapping("/manageRecordAudit2")
    public void manageRecordAudit2(){
    }
 
    @ValueClassify(value = "记录的控制")
    @ApiOperation(value = "原审核部门意见文件修订申请审批记录")
    @PostMapping("/manageRecordAudit3")
    public void manageRecordAudit3(){
    }
 
    @ValueClassify(value = "记录的控制")
    @ApiOperation(value = "导出文件修订申请审批记录")
    @PostMapping("/exportOutManageRecordAudit")
    public Result exportOutManageRecordAudit(@RequestBody Map<String, Object> data, HttpServletResponse response) throws Exception {
        ManageRecordAudit manageRecordAudit = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), ManageRecordAudit.class);
        return Result.success(manageRecordAuditService.exportOutManageRecordAudit(manageRecordAudit,response));
    }
 
 
}