From f201f17d7e25e71d22b9c8b821e387bdc8fba52d Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期一, 12 五月 2025 16:42:07 +0800 Subject: [PATCH] 添加判断当前时间是否没有该检测项的抽样计划功能 --- cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsTotalController.java | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsTotalController.java b/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsTotalController.java index 34f4786..ac523fd 100644 --- a/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsTotalController.java +++ b/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsTotalController.java @@ -11,10 +11,7 @@ import com.deepoove.poi.data.style.*; import io.swagger.annotations.Api; 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 org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import java.util.Map; @@ -24,7 +21,7 @@ * 鏂囦欢瀹氭湡瀹℃煡璁板綍鎬诲巻鍙茶褰曡〃 鍓嶇鎺у埗鍣� * </p> * - * @author 鑺杞欢锛堟睙鑻忥級鏈夐檺鍏徃 + * @author * @since 2024-11-15 01:12:11 */ @Api(tags = "璁板綍鐨勬帶鍒�") @@ -36,20 +33,23 @@ private ManageRecordIntervalsTotalService manageRecordIntervalsTotalService; @ApiOperation(value = "鏌ヨ鏂囦欢瀹氭湡瀹℃煡璁板綍鍘嗗彶鍒楄〃") - @PostMapping("/pageManageRecordIntervalsTotal") + @GetMapping("/pageManageRecordIntervalsTotal") public Result pageManageRecordIntervalsTotal(Page page,ManageRecordIntervalsTotal manageRecordIntervalsTotal) throws Exception { return Result.success(manageRecordIntervalsTotalService.pageManageRecordIntervalsTotal(page, manageRecordIntervalsTotal)); } @ApiOperation(value = "鎻愪氦鏂囦欢瀹氭湡瀹℃煡璁板綍鍘嗗彶鍒楄〃") @PostMapping("/submitManageRecordIntervalsTotal") - public Result submitManageRecordIntervalsTotal(Integer id) { + public Result submitManageRecordIntervalsTotal(@RequestBody Map<String, Integer> param) { + Integer id = param.get("id"); return Result.success(manageRecordIntervalsTotalService.submitManageRecordIntervalsTotal(id)); } @ApiOperation(value = "鎵瑰噯鏂囦欢瀹氭湡瀹℃煡璁板綍鍘嗗彶鍒楄〃") @PostMapping("/ratifyManageRecordIntervalsTotal") - public Result ratifyManageRecordIntervalsTotal(Integer id, String ratifyState) { + public Result ratifyManageRecordIntervalsTotal(@RequestBody Map<String, Object> param) { + Integer id = (Integer) param.get("id"); + String ratifyState = (String) param.get("ratifyState"); return Result.success(manageRecordIntervalsTotalService.ratifyManageRecordIntervalsTotal(id, ratifyState)); } -- Gitblit v1.9.3