| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.zy.asrs.framework.common.Cools; |
| | | import com.zy.asrs.framework.common.R; |
| | | import com.zy.asrs.wms.common.annotation.CacheData; |
| | | import com.zy.asrs.wms.common.annotation.OperationLog; |
| | | import com.zy.asrs.wms.common.domain.BaseParam; |
| | | import com.zy.asrs.wms.common.domain.KeyValVo; |
| | |
| | | |
| | | @PreAuthorize("hasAuthority('system:operationRecord:list')") |
| | | @PostMapping("/operationRecord/page") |
| | | @CacheData(tableName = {"sys_operation_record"}) |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<OperationRecord, BaseParam> pageParam = new PageParam<>(baseParam, OperationRecord.class); |
| | |
| | | |
| | | @PreAuthorize("hasAuthority('system:operationRecord:list')") |
| | | @PostMapping("/operationRecord/list") |
| | | @CacheData(tableName = {"sys_operation_record"}) |
| | | public R list(@RequestBody Map<String, Object> map) { |
| | | return R.ok().add(operationRecordService.list()); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:operationRecord:list')") |
| | | @GetMapping("/operationRecord/{id}") |
| | | @CacheData(tableName = {"sys_operation_record"}) |
| | | public R get(@PathVariable("id") Long id) { |
| | | return R.ok().add(operationRecordService.getById(id)); |
| | | } |
| | |
| | | @PreAuthorize("hasAuthority('system:operationRecord:list')") |
| | | @PostMapping("/operationRecord/export") |
| | | public void export(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception { |
| | | ExcelUtil.build(ExcelUtil.create(operationRecordService.list(), OperationRecord.class), response); |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<OperationRecord, BaseParam> pageParam = new PageParam<>(baseParam, OperationRecord.class); |
| | | List<OperationRecord> data = operationRecordService.list(pageParam.buildWrapper(true)); |
| | | |
| | | ExcelUtil.build(ExcelUtil.create(data, OperationRecord.class), response); |
| | | } |
| | | |
| | | } |