| | |
| | | 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 javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | private ManageDocumentCancelService manageDocumentCancelService; |
| | | |
| | | @ApiOperation(value = "分页查询文件作废") |
| | | @PostMapping("/pageManageDocumentCancel") |
| | | @GetMapping("/pageManageDocumentCancel") |
| | | public Result pageManageDocumentCancel(Page page,ManageDocumentCancel manageDocumentCancel) throws Exception { |
| | | return Result.success(manageDocumentCancelService.pageManageDocumentCancel(page, manageDocumentCancel)); |
| | | } |
| | |
| | | |
| | | @ApiOperation(value = "审核文件作废") |
| | | @PostMapping("/checkManageDocumentCancel") |
| | | public Result checkManageDocumentCancel(Integer id, String state) { |
| | | public Result checkManageDocumentCancel(@RequestBody Map<String, Object> param) { |
| | | Integer id = (Integer) param.get("id"); |
| | | String state = (String) param.get("state"); |
| | | return Result.success(manageDocumentCancelService.checkManageDocumentCancel(id, state)); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除文件作废") |
| | | @PostMapping("/delManageDocumentCancel") |
| | | @DeleteMapping("/delManageDocumentCancel") |
| | | public Result delManageDocumentCancel(Integer id) { |
| | | return Result.success(manageDocumentCancelService.delManageDocumentCancel(id)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "查看文件作废") |
| | | @PostMapping("/getManageDocumentCancel") |
| | | @GetMapping("/getManageDocumentCancel") |
| | | public Result getManageDocumentCancel(Integer id) { |
| | | return Result.success(manageDocumentCancelService.getManageDocumentCancel(id)); |
| | | } |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "导出文件作废") |
| | | @PostMapping("/exportManageDocumentCancel") |
| | | @GetMapping("/exportManageDocumentCancel") |
| | | public void exportManageDocumentCancel(ManageDocumentCancel manageDocumentCancel,HttpServletResponse response) throws Exception { |
| | | manageDocumentCancelService.exportManageDocumentCancel(manageDocumentCancel,response); |
| | | } |