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
package com.yuanchu.mom.controller;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuanchu.mom.annotation.ValueClassify;
import com.yuanchu.mom.pojo.ManageMeeting;
import com.yuanchu.mom.pojo.ManageReviewReport;
import com.yuanchu.mom.service.ManageMeetingService;
import com.yuanchu.mom.service.ManageReviewReportService;
import com.yuanchu.mom.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import javax.websocket.HandshakeResponse;
 
/**
 * <p>
 * 管理评审报告 前端控制器
 * </p>
 *
 * @author
 * @since 2024-11-12 04:44:39
 */
@Api(tags = "管理评审报告")
@RestController
@RequestMapping("/manageReviewReport")
public class ManageReviewReportController {
 
    @Resource
    private ManageReviewReportService manageReviewReportService;
 
    @ValueClassify(value = "管理评审报告")
    @ApiOperation(value = "查询管理评审报告")
    @GetMapping("/getPageReviewReport")
    public Result<IPage<ManageReviewReport>> getPageReviewReport(Page page, String startTime, String endTime, String place) {
        IPage<ManageReviewReport> ipage = manageReviewReportService.page(page,startTime,endTime,place);
        return Result.success(ipage);
    }
 
    @ValueClassify(value = "管理评审报告")
    @ApiOperation(value = "新增管理评审报告")
    @PostMapping("/addReviewReport")
    public Result addReviewReport(@RequestBody ManageReviewReport manageReviewReport){
        return Result.success(manageReviewReportService.save(manageReviewReport));
    }
 
    @ValueClassify(value = "管理评审报告")
    @ApiOperation(value = "编辑管理评审报告")
    @PutMapping("/modifyReviewReport")
    public Result modifyReviewReport(@RequestBody ManageReviewReport manageReviewReport){
        return Result.success(manageReviewReportService.updateById(manageReviewReport));
    }
 
    @ValueClassify(value = "管理评审报告")
    @ApiOperation(value = "删除管理评审报告")
    @DeleteMapping("/deleteReviewReport")
    public Result deleteReviewReport(Integer id){
        return Result.success(manageReviewReportService.removeById(id));
    }
 
    @ValueClassify(value = "管理评审报告")
    @ApiOperation(value = "下载管理评审报告")
    @PostMapping("/exportReviewReport")
    public void exportReviewReport(Integer id , HttpServletResponse response){
        manageReviewReportService.exportReviewReport(id,response);
    }
}