| | |
| | | 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.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.common.utils.JackSonUtil; |
| | | |
| | | import com.deepoove.poi.data.style.*; |
| | | |
| | | import com.ruoyi.manage.pojo.ManageDocumentAlter; |
| | | import com.ruoyi.manage.service.ManageDocumentAlterService; |
| | | 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-11 11:04:01 |
| | | */ |
| | | @Api(tags = "管理体系文件的控制") |
| | | @RestController |
| | | @RequestMapping("/manageDocumentAlter") |
| | | @CustomClazzName(name = "体系管理要求", index = 10) |
| | | public class ManageDocumentAlterController { |
| | | |
| | | @Resource |
| | | private ManageDocumentAlterService manageDocumentAlterService; |
| | | |
| | | @ValueClassify(value = "管理体系文件的控制") |
| | | @ApiOperation(value = "分页查询文件变更") |
| | | @PostMapping("/pageManageDocumentAlter") |
| | | public Result pageManageDocumentAlter(@RequestBody Map<String, Object> data) throws Exception { |
| | | Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); |
| | | ManageDocumentAlter manageDocumentAlter = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), ManageDocumentAlter.class); |
| | | public Result pageManageDocumentAlter(Page page,ManageDocumentAlter manageDocumentAlter) throws Exception { |
| | | return Result.success(manageDocumentAlterService.pageManageDocumentAlter(page, manageDocumentAlter)); |
| | | } |
| | | |
| | | @ValueClassify(value = "管理体系文件的控制") |
| | | @ApiOperation(value = "删除文件变更") |
| | | @PostMapping("/delManageDocumentAlter") |
| | | public Result delManageDocumentAlter(Integer id){ |
| | | return Result.success(manageDocumentAlterService.delManageDocumentAlter(id)); |
| | | } |
| | | |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "查看文件变更") |
| | | @PostMapping("/getManageDocumentAlter") |
| | | public Result getManageDocumentAlter(Integer id){ |
| | | return Result.success(manageDocumentAlterService.getManageDocumentAlter(id)); |
| | | } |
| | | |
| | | @ValueClassify(value = "管理体系文件的控制") |
| | | @ApiOperation(value = "新增文件变更") |
| | | @PostMapping("/addManageDocumentAlter") |
| | | public Result addManageDocumentAlter(ManageDocumentAlter manageDocumentAlter){ |
| | | return Result.success(manageDocumentAlterService.addManageDocumentAlter(manageDocumentAlter)); |
| | | } |
| | | |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "编辑文件变更") |
| | | @PostMapping("/doManageDocumentAlter") |
| | | public Result doManageDocumentAlter(ManageDocumentAlter manageDocumentAlter){ |
| | | return Result.success(manageDocumentAlterService.doManageDocumentAlter(manageDocumentAlter)); |
| | | } |
| | | |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "审核文件变更") |
| | | @PostMapping("/checkManageDocumentAlter") |
| | | public Result checkManageDocumentAlter(ManageDocumentAlter manageDocumentAlter){ |
| | | return Result.success(manageDocumentAlterService.checkManageDocumentAlter(manageDocumentAlter)); |
| | | } |
| | | |
| | | @ValueAuth |
| | | |
| | | @ApiOperation(value = "审核查看附件") |
| | | @PostMapping("/checkManageDocumentAlterPdf") |
| | | public void checkManageDocumentAlterPdf(Long id, HttpServletResponse response)throws Exception { |
| | | manageDocumentAlterService.checkManageDocumentAlterPdf(id,response); |
| | | } |
| | | |
| | | @ValueClassify(value = "管理体系文件的控制") |
| | | @ApiOperation(value = "导出文件变更") |
| | | @PostMapping("/exportManageDocumentAlter") |
| | | public void exportManageDocumentAlter(@RequestBody Map<String, Object> data,HttpServletResponse response) throws Exception { |
| | | ManageDocumentAlter manageDocumentAlter = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), ManageDocumentAlter.class); |
| | | public void exportManageDocumentAlter(ManageDocumentAlter manageDocumentAlter,HttpServletResponse response) throws Exception { |
| | | manageDocumentAlterService.exportManageDocumentAlter(manageDocumentAlter,response); |
| | | } |
| | | |