| | |
| | | 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.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | private ManageDocumentAlterService manageDocumentAlterService; |
| | | |
| | | @ApiOperation(value = "分页查询文件变更") |
| | | @PostMapping("/pageManageDocumentAlter") |
| | | @GetMapping("/pageManageDocumentAlter") |
| | | public Result pageManageDocumentAlter(Page page,ManageDocumentAlter manageDocumentAlter) throws Exception { |
| | | return Result.success(manageDocumentAlterService.pageManageDocumentAlter(page, manageDocumentAlter)); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除文件变更") |
| | | @PostMapping("/delManageDocumentAlter") |
| | | @DeleteMapping("/delManageDocumentAlter") |
| | | public Result delManageDocumentAlter(Integer id){ |
| | | return Result.success(manageDocumentAlterService.delManageDocumentAlter(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "查看文件变更") |
| | | @PostMapping("/getManageDocumentAlter") |
| | | @GetMapping("/getManageDocumentAlter") |
| | | public Result getManageDocumentAlter(Integer id){ |
| | | return Result.success(manageDocumentAlterService.getManageDocumentAlter(id)); |
| | | } |
| | |
| | | |
| | | |
| | | @ApiOperation(value = "审核查看附件") |
| | | @PostMapping("/checkManageDocumentAlterPdf") |
| | | @GetMapping("/checkManageDocumentAlterPdf") |
| | | public void checkManageDocumentAlterPdf(Long id, HttpServletResponse response)throws Exception { |
| | | manageDocumentAlterService.checkManageDocumentAlterPdf(id,response); |
| | | } |
| | | |
| | | @ApiOperation(value = "导出文件变更") |
| | | @PostMapping("/exportManageDocumentAlter") |
| | | @GetMapping("/exportManageDocumentAlter") |
| | | public void exportManageDocumentAlter(ManageDocumentAlter manageDocumentAlter,HttpServletResponse response) throws Exception { |
| | | manageDocumentAlterService.exportManageDocumentAlter(manageDocumentAlter,response); |
| | | } |