From da59bd81334e7b4ddeaaa401f27c5b93797fde46 Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期四, 20 二月 2025 10:36:18 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev --- cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsController.java | 78 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 78 insertions(+), 0 deletions(-) diff --git a/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsController.java b/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsController.java new file mode 100644 index 0000000..faf687e --- /dev/null +++ b/cnas-manage/src/main/java/com/ruoyi/manage/controller/ManageRecordIntervalsController.java @@ -0,0 +1,78 @@ +package com.ruoyi.manage.controller; + +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; + +import com.deepoove.poi.data.style.*; + +import com.ruoyi.common.core.domain.Result; +import com.ruoyi.common.utils.JackSonUtil; +import com.ruoyi.manage.pojo.ManageRecordIntervals; +import com.ruoyi.manage.service.ManageRecordIntervalsService; +import com.deepoove.poi.data.style.*; +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.multipart.MultipartFile; + +import javax.annotation.Resource; +import javax.servlet.http.HttpServletResponse; +import java.util.Map; + +/** + * <p> + * 鏂囦欢瀹氭湡瀹℃煡璁板綍 鍓嶇鎺у埗鍣� + * </p> + * + * @author 鑺杞欢锛堟睙鑻忥級鏈夐檺鍏徃 + * @since 2024-11-13 10:54:31 + */ +@Api(tags = "璁板綍鐨勬帶鍒�") +@RestController +@RequestMapping("/manageRecordIntervals") +public class ManageRecordIntervalsController { + + @Resource + private ManageRecordIntervalsService manageRecordIntervalsService; + + @ApiOperation(value = "鍒嗛〉鏌ヨ鏂囦欢瀹氭湡瀹℃煡璁板綍") + @PostMapping("/pageManageRecordIntervals") + public Result pageManageRecordIntervals(Page page,ManageRecordIntervals manageRecordIntervals) throws Exception { + return Result.success(manageRecordIntervalsService.pageManageRecordIntervals(page, manageRecordIntervals)); + } + + @ApiOperation(value = "鏂板鏂囦欢瀹氭湡瀹℃煡璁板綍") + @PostMapping("/addManageRecordIntervals") + public Result addManageRecordIntervals(@RequestBody ManageRecordIntervals manageRecordIntervals) { + return Result.success(manageRecordIntervalsService.addManageRecordIntervals(manageRecordIntervals)); + } + + + @ApiOperation(value = "缂栬緫鏂囦欢瀹氭湡瀹℃煡璁板綍") + @PostMapping("/doManageRecordIntervals") + public Result doManageRecordIntervals(@RequestBody ManageRecordIntervals manageRecordIntervals) { + return Result.success(manageRecordIntervalsService.updateById(manageRecordIntervals)); + } + + @ApiOperation(value = "鍒犻櫎鏂囦欢瀹氭湡瀹℃煡璁板綍") + @PostMapping("/delManageRecordIntervals") + public Result delManageRecordIntervals(Integer id) { + return Result.success(manageRecordIntervalsService.delManageRecordIntervals(id)); + } + + @ApiOperation(value = "瀵煎嚭鏂囦欢瀹氭湡瀹℃煡璁板綍") + @PostMapping("/exportOutManageRecordIntervals") + public Result exportOutManageRecordIntervals(ManageRecordIntervals manageRecordIntervals, HttpServletResponse response) throws Exception { + return Result.success(manageRecordIntervalsService.exportOutManageRecordIntervals(manageRecordIntervals,response)); + } + + @ApiOperation(value = "瀵煎叆鏂囦欢瀹氭湡瀹℃煡璁板綍") + @PostMapping("/exportInManageRecordIntervals") + public Result exportInManageRecordIntervals(MultipartFile file){ + return Result.success(manageRecordIntervalsService.exportInManageRecordIntervals(file)); + } + +} -- Gitblit v1.9.3