From 50164d95bfe34f532e3f2513a53f62c0864fe1a2 Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期三, 07 五月 2025 18:11:31 +0800 Subject: [PATCH] 关闭流 --- cnas-process/src/main/java/com/ruoyi/process/controller/QualitySuperviseManagementReviewController.java | 71 +++++++++++++++++++++++++++++++++++ 1 files changed, 71 insertions(+), 0 deletions(-) diff --git a/cnas-process/src/main/java/com/ruoyi/process/controller/QualitySuperviseManagementReviewController.java b/cnas-process/src/main/java/com/ruoyi/process/controller/QualitySuperviseManagementReviewController.java new file mode 100644 index 0000000..5595608 --- /dev/null +++ b/cnas-process/src/main/java/com/ruoyi/process/controller/QualitySuperviseManagementReviewController.java @@ -0,0 +1,71 @@ +package com.ruoyi.process.controller; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.ruoyi.common.core.domain.Result; +import com.ruoyi.process.pojo.QualitySupervise; +import com.ruoyi.process.pojo.QualitySuperviseManagementReview; +import com.ruoyi.process.service.QualitySuperviseManagementReviewService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.AllArgsConstructor; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; + +/** + * <p> + * 璐ㄩ噺鐩戠潱绠$悊璇勫杈撳叆鏉愭枡 鍓嶇鎺у埗鍣� + * </p> + * + * @author + * @since 2025-05-07 10:46:11 + */ +@RestController +@RequestMapping("/managementReview") +@Api(tags = "璐ㄩ噺鐩戠潱绠$悊璇勫杈撳叆鏉愭枡") +@AllArgsConstructor +public class QualitySuperviseManagementReviewController { + + private QualitySuperviseManagementReviewService qualitySuperviseManagementReviewService; + + /** + * 鍒嗛〉鏌ヨ + * @return + */ + @ApiOperation(value = "鍒嗛〉鏌ヨ") + @GetMapping("/pageManagementReview") + public Result<IPage<QualitySuperviseManagementReview>> pageManagementReview(QualitySuperviseManagementReview managementReview, Page page) { + return Result.success(qualitySuperviseManagementReviewService.pageManagementReview(page, managementReview)); + } + + /** + * 鏂板鎴栦慨鏀� + * @return + */ + @ApiOperation(value = "鏂板鎴栦慨鏀�") + @PostMapping("/saveOrUpdateManagementReview") + public Result saveOrUpdateManagementReview(@RequestBody QualitySuperviseManagementReview managementReview) { + return Result.success(qualitySuperviseManagementReviewService.saveOrUpdate(managementReview)); + } + + /** + * 鍒犻櫎 + * @return + */ + @ApiOperation(value = "鍒犻櫎") + @DeleteMapping("/deleteManagementReview") + public Result deleteManagementReview(Integer managementReviewId) { + return Result.success(qualitySuperviseManagementReviewService.removeById(managementReviewId)); + } + + /** + * 瀵煎嚭 + * @return + */ + @ApiOperation(value = "瀵煎嚭") + @GetMapping("/exportManagementReview") + public void exportManagementReview(Integer managementReviewId,HttpServletResponse response) { + qualitySuperviseManagementReviewService.exportManagementReview(managementReviewId, response); + } +} -- Gitblit v1.9.3