| | |
| | | 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('asrs:taskLog:list')") |
| | | @PostMapping("/taskLog/page") |
| | | @CacheData(tableName = {"man_task_log"}) |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<TaskLog, BaseParam> pageParam = new PageParam<>(baseParam, TaskLog.class); |
| | |
| | | |
| | | @PreAuthorize("hasAuthority('asrs:taskLog:list')") |
| | | @PostMapping("/taskLog/list") |
| | | @CacheData(tableName = {"man_task_log"}) |
| | | public R list(@RequestBody Map<String, Object> map) { |
| | | return R.ok().add(taskLogService.list()); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('asrs:taskLog:list')") |
| | | @GetMapping("/taskLog/{id}") |
| | | @CacheData(tableName = {"man_task_log"}) |
| | | public R get(@PathVariable("id") Long id) { |
| | | return R.ok().add(taskLogService.getById(id)); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('asrs:taskLog:list')") |
| | | @GetMapping("/taskLog/orderDetlId/{orderDetlId}") |
| | | public R getByOrderDetlId(@PathVariable("orderDetlId") Long orderDetlId) { |
| | | return R.ok().add(taskLogService.getByOrderDetlId(orderDetlId)); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('asrs:taskLog:save')") |
| | |
| | | @PreAuthorize("hasAuthority('asrs:taskLog:list')") |
| | | @PostMapping("/taskLog/export") |
| | | public void export(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception { |
| | | ExcelUtil.build(ExcelUtil.create(taskLogService.list(), TaskLog.class), response); |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<TaskLog, BaseParam> pageParam = new PageParam<>(baseParam, TaskLog.class); |
| | | List<TaskLog> data = taskLogService.list(pageParam.buildWrapper(true)); |
| | | |
| | | ExcelUtil.build(ExcelUtil.create(data, TaskLog.class), response); |
| | | } |
| | | |
| | | } |