| | |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.DateUtil; |
| | | import com.doumee.dao.business.model.ActionLog; |
| | | import com.doumee.dao.business.vo.GoodsorderExportVO; |
| | | import com.doumee.service.business.ActionLogService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | public ApiResponse<PageData<ActionLog>> findPage (@RequestBody PageWrap<ActionLog> pageWrap) { |
| | | return ApiResponse.success(actionLogService.findPage(pageWrap)); |
| | | } |
| | | @ApiOperation("分页查询-调整记录") |
| | | @PostMapping("/findRidePae") |
| | | @RequiresPermissions("business:actionlog:query") |
| | | public ApiResponse<PageData<ActionLog>> findRidePae (@RequestBody PageWrap<ActionLog> pageWrap) { |
| | | return ApiResponse.success(actionLogService.findRidePae(pageWrap)); |
| | | } |
| | | |
| | | @ApiOperation("导出Excel") |
| | | @PostMapping("/exportExcel") |
| | |
| | | public void exportExcel (@RequestBody PageWrap<ActionLog> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(ActionLog.class).export(actionLogService.findPage(pageWrap).getRecords(), "系统行为操作记录表", response); |
| | | } |
| | | @ApiOperation("导出调整记录Excel") |
| | | @PostMapping("/exportRideExcel") |
| | | @RequiresPermissions("business:actionlog:exportExcel") |
| | | public void exportRideExcel (@RequestBody PageWrap<ActionLog> pageWrap, HttpServletResponse response) { |
| | | ExcelExporter.build(ActionLog.class).exportWithFirstAndEnd(actionLogService.findRidePae(pageWrap).getRecords(), "调整记录_"+System.currentTimeMillis(),"调整记录_"+ DateUtil.getPlusTime2(DateUtil.getCurrentDate()),null, response); |
| | | |
| | | } |
| | | |
| | | @ApiOperation("根据ID查询") |
| | | @GetMapping("/{id}") |