| | |
| | | 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; |
| | |
| | | private ManageRecordIssueRecycleService manageRecordIssueRecycleService; |
| | | |
| | | @ApiOperation(value = "分页查询所有文件的发放与回收记录") |
| | | @PostMapping("/pageManageRecordIssueRecycle") |
| | | @GetMapping("/pageManageRecordIssueRecycle") |
| | | public Result pageManageRecordIssueRecycle(Page page,ManageRecordIssueRecycle manageRecordIssueRecycle) throws Exception { |
| | | return Result.success(manageRecordIssueRecycleService.pageManageRecordIssueRecycle(page, manageRecordIssueRecycle)); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除所有文件的发放与回收记录") |
| | | @PostMapping("/delManageRecordIssueRecycle") |
| | | @DeleteMapping("/delManageRecordIssueRecycle") |
| | | public Result delManageRecordIssueRecycle(Integer id){ |
| | | return Result.success(manageRecordIssueRecycleService.removeById(id)); |
| | | } |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "导出所有文件的发放与回收记录") |
| | | @PostMapping("/exportOutManageRecordIssueRecycle") |
| | | public Result exportOutManageRecordIssueRecycle(@RequestBody Map<String, Object> data, HttpServletResponse response) throws Exception { |
| | | ManageRecordIssueRecycle manageRecordIssueRecycle = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), ManageRecordIssueRecycle.class); |
| | | @GetMapping("/exportOutManageRecordIssueRecycle") |
| | | public Result exportOutManageRecordIssueRecycle(ManageRecordIssueRecycle manageRecordIssueRecycle, HttpServletResponse response) { |
| | | return Result.success(manageRecordIssueRecycleService.exportOutManageRecordIssueRecycle(manageRecordIssueRecycle,response)); |
| | | } |
| | | |