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 io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.Operation; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; import jakarta.annotation.Resource; import jakarta.servlet.http.HttpServletResponse; import java.util.Map; /** *

* 文件定期审查记录 前端控制器 *

* * @author * @since 2024-11-13 10:54:31 */ @Tag(name = "记录的控制") @RestController @RequestMapping("/manageRecordIntervals") public class ManageRecordIntervalsController { @Resource private ManageRecordIntervalsService manageRecordIntervalsService; @Operation(summary = "分页查询文件定期审查记录") @GetMapping("/pageManageRecordIntervals") public Result pageManageRecordIntervals(Page page,ManageRecordIntervals manageRecordIntervals) throws Exception { return Result.success(manageRecordIntervalsService.pageManageRecordIntervals(page, manageRecordIntervals)); } @Operation(summary = "新增文件定期审查记录") @PostMapping("/addManageRecordIntervals") public Result addManageRecordIntervals(@RequestBody ManageRecordIntervals manageRecordIntervals) { return Result.success(manageRecordIntervalsService.addManageRecordIntervals(manageRecordIntervals)); } @Operation(summary = "编辑文件定期审查记录") @PostMapping("/doManageRecordIntervals") public Result doManageRecordIntervals(@RequestBody ManageRecordIntervals manageRecordIntervals) { return Result.success(manageRecordIntervalsService.updateById(manageRecordIntervals)); } @Operation(summary = "删除文件定期审查记录") @DeleteMapping("/delManageRecordIntervals") public Result delManageRecordIntervals(Integer id) { return Result.success(manageRecordIntervalsService.delManageRecordIntervals(id)); } @Operation(summary = "导出文件定期审查记录") @GetMapping("/exportOutManageRecordIntervals") public Result exportOutManageRecordIntervals(ManageRecordIntervals manageRecordIntervals, HttpServletResponse response) throws Exception { return Result.success(manageRecordIntervalsService.exportOutManageRecordIntervals(manageRecordIntervals,response)); } @Operation(summary = "导入文件定期审查记录") @PostMapping("/exportInManageRecordIntervals") public Result exportInManageRecordIntervals(MultipartFile file){ return Result.success(manageRecordIntervalsService.exportInManageRecordIntervals(file)); } }