| | |
| | | package com.ruoyi.manage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.manage.annotation.CustomClazzName; |
| | | import com.ruoyi.manage.annotation.ValueAuth; |
| | | import com.ruoyi.manage.annotation.ValueClassify; |
| | | |
| | | 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.ruoyi.manage.utils.JackSonUtil; |
| | | import com.ruoyi.manage.vo.Result; |
| | | 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; |
| | |
| | | * @author 芯导软件(江苏)有限公司 |
| | | * @since 2024-11-13 10:54:31 |
| | | */ |
| | | @Api(tags = "记录的控制") |
| | | @RestController |
| | | @RequestMapping("/manageRecordIntervals") |
| | | @CustomClazzName(name = "体系管理要求", index = 10) |
| | | public class ManageRecordIntervalsController { |
| | | |
| | | @Resource |
| | | private ManageRecordIntervalsService manageRecordIntervalsService; |
| | | |
| | | @ValueClassify(value = "记录的控制") |
| | | @ApiOperation(value = "分页查询文件定期审查记录") |
| | | @PostMapping("/pageManageRecordIntervals") |
| | | public Result pageManageRecordIntervals(@RequestBody Map<String, Object> data) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | ManageRecordIntervals manageRecordIntervals = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), ManageRecordIntervals.class); |
| | | public Result pageManageRecordIntervals(Page page,ManageRecordIntervals manageRecordIntervals) throws Exception { |
| | | return Result.success(manageRecordIntervalsService.pageManageRecordIntervals(page, manageRecordIntervals)); |
| | | } |
| | | |
| | | @ValueClassify(value = "记录的控制") |
| | | @ApiOperation(value = "新增文件定期审查记录") |
| | | @PostMapping("/addManageRecordIntervals") |
| | | public Result addManageRecordIntervals(@RequestBody ManageRecordIntervals manageRecordIntervals) { |
| | | return Result.success(manageRecordIntervalsService.addManageRecordIntervals(manageRecordIntervals)); |
| | | } |
| | | |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "编辑文件定期审查记录") |
| | | @PostMapping("/doManageRecordIntervals") |
| | | public Result doManageRecordIntervals(@RequestBody ManageRecordIntervals manageRecordIntervals) { |
| | | return Result.success(manageRecordIntervalsService.updateById(manageRecordIntervals)); |
| | | } |
| | | |
| | | @ValueClassify(value = "记录的控制") |
| | | @ApiOperation(value = "删除文件定期审查记录") |
| | | @PostMapping("/delManageRecordIntervals") |
| | | public Result delManageRecordIntervals(Integer id) { |
| | | return Result.success(manageRecordIntervalsService.delManageRecordIntervals(id)); |
| | | } |
| | | |
| | | @ValueClassify(value = "记录的控制") |
| | | @ApiOperation(value = "导出文件定期审查记录") |
| | | @PostMapping("/exportOutManageRecordIntervals") |
| | | public Result exportOutManageRecordIntervals(@RequestBody Map<String, Object> data, HttpServletResponse response) throws Exception { |
| | | ManageRecordIntervals manageRecordIntervals = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), ManageRecordIntervals.class); |
| | | public Result exportOutManageRecordIntervals(ManageRecordIntervals manageRecordIntervals, HttpServletResponse response) throws Exception { |
| | | return Result.success(manageRecordIntervalsService.exportOutManageRecordIntervals(manageRecordIntervals,response)); |
| | | } |
| | | |
| | | @ValueClassify(value = "记录的控制") |
| | | @ApiOperation(value = "导入文件定期审查记录") |
| | | @PostMapping("/exportInManageRecordIntervals") |
| | | public Result exportInManageRecordIntervals(MultipartFile file){ |