| | |
| | | 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.ManageRecordCancel; |
| | | import com.ruoyi.manage.service.ManageRecordCancelService; |
| | | 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 01:27:22 |
| | | */ |
| | | @Api(tags = "记录的控制") |
| | | @RestController |
| | | @RequestMapping("/manageRecordCancel") |
| | | @CustomClazzName(name = "体系管理要求", index = 10) |
| | | public class ManageRecordCancelController { |
| | | |
| | | @Resource |
| | | private ManageRecordCancelService manageRecordCancelService; |
| | | |
| | | @ValueClassify(value = "记录的控制") |
| | | @ApiOperation(value = "分页查询作废文件销毁记录") |
| | | @PostMapping("/pageManageRecordCancel") |
| | | public Result pageManageRecordCancel(@RequestBody Map<String, Object> data) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | ManageRecordCancel manageRecordCancel = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), ManageRecordCancel.class); |
| | | public Result pageManageRecordCancel(Page page,ManageRecordCancel manageRecordCancel) throws Exception { |
| | | return Result.success(manageRecordCancelService.pageManageRecordCancel(page, manageRecordCancel)); |
| | | } |
| | | |
| | | @ValueClassify(value = "记录的控制") |
| | | @ApiOperation(value = "新增作废文件销毁记录") |
| | | @PostMapping("/addManageRecordCancel") |
| | | public Result addManageRecordCancel(@RequestBody ManageRecordCancel manageRecordCancel){ |
| | |
| | | return Result.success(manageRecordCancelService.save(manageRecordCancel)); |
| | | } |
| | | |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "编辑作废文件销毁记录") |
| | | @PostMapping("/doManageRecordCancel") |
| | | public Result doManageRecordCancel(@RequestBody ManageRecordCancel manageRecordCancel){ |
| | | return Result.success(manageRecordCancelService.updateById(manageRecordCancel)); |
| | | } |
| | | |
| | | @ValueClassify(value = "记录的控制") |
| | | @ApiOperation(value = "删除作废文件销毁记录") |
| | | @PostMapping("/delManageRecordCancel") |
| | | public Result delManageRecordCancel(Integer id){ |
| | | return Result.success(manageRecordCancelService.removeById(id)); |
| | | } |
| | | |
| | | @ValueClassify(value = "记录的控制") |
| | | @ApiOperation(value = "批准作废文件销毁记录") |
| | | @PostMapping("/ratifyManageRecordCancel") |
| | | public Result ratifyManageRecordCancel(Integer id,String ratifyState){ |
| | | return Result.success(manageRecordCancelService.ratifyManageRecordCancel(id,ratifyState)); |
| | | } |
| | | |
| | | @ValueClassify(value = "记录的控制") |
| | | @ApiOperation(value = "导出作废文件销毁记录") |
| | | @PostMapping("/exportOutManageRecordCancel") |
| | | public Result exportOutManageRecordCancel(@RequestBody Map<String, Object> data, HttpServletResponse response) throws Exception { |
| | | ManageRecordCancel manageRecordCancel = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), ManageRecordCancel.class); |
| | | public Result exportOutManageRecordCancel(ManageRecordCancel manageRecordCancel, HttpServletResponse response) throws Exception { |
| | | return Result.success(manageRecordCancelService.exportOutManageRecordCancel(manageRecordCancel,response)); |
| | | } |
| | | |
| | | @ValueClassify(value = "记录的控制") |
| | | @ApiOperation(value = "导入作废文件销毁记录") |
| | | @PostMapping("/exportInManageRecordCancel") |
| | | public Result exportInManageRecordCancel(MultipartFile file){ |