zhuo
2025-03-15 500b831eb1153e9ba04fbffefa8fdfdfa080316c
cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageReviewReportController.java
@@ -2,10 +2,11 @@
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.manage.annotation.ValueClassify;
import com.ruoyi.common.core.domain.Result;
import com.ruoyi.manage.pojo.ManageReviewReport;
import com.ruoyi.manage.service.ManageReviewReportService;
import com.ruoyi.manage.vo.Result;
import com.deepoove.poi.data.style.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
@@ -29,7 +30,6 @@
    @Resource
    private ManageReviewReportService manageReviewReportService;
    @ValueClassify(value = "管理评审报告")
    @ApiOperation(value = "查询管理评审报告")
    @GetMapping("/getPageReviewReport")
    public Result<IPage<ManageReviewReport>> getPageReviewReport(Page page, String startTime, String endTime, String place) {
@@ -37,30 +37,26 @@
        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")
    @PostMapping("/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")
    @GetMapping("/exportReviewReport")
    public void exportReviewReport(Integer id , HttpServletResponse response){
        manageReviewReportService.exportReviewReport(id,response);
    }