| | |
| | | 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:orderDetlLog:list')") |
| | | @PostMapping("/orderDetlLog/page") |
| | | @CacheData(tableName = {"man_order_detl_log"}) |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<OrderDetlLog, BaseParam> pageParam = new PageParam<>(baseParam, OrderDetlLog.class); |
| | |
| | | |
| | | @PreAuthorize("hasAuthority('asrs:orderDetlLog:list')") |
| | | @PostMapping("/orderDetlLog/list") |
| | | @CacheData(tableName = {"man_order_detl_log"}) |
| | | public R list(@RequestBody Map<String, Object> map) { |
| | | return R.ok().add(orderDetlLogService.list()); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('asrs:orderDetl:list')") |
| | | @GetMapping("/orderDetlLog/orderId/{orderId}") |
| | | @CacheData(tableName = {"man_order_detl_log"}) |
| | | public R list(@PathVariable("orderId") Long orderId) { |
| | | return R.ok().add(orderDetlLogService.getOrderDetlByOrderId(orderId)); |
| | | } |
| | |
| | | @PreAuthorize("hasAuthority('asrs:orderDetlLog:list')") |
| | | @PostMapping("/orderDetlLog/export") |
| | | public void export(@RequestBody Map<String, Object> map, HttpServletResponse response) throws Exception { |
| | | ExcelUtil.build(ExcelUtil.create(orderDetlLogService.list(), OrderDetlLog.class), response); |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<OrderDetlLog, BaseParam> pageParam = new PageParam<>(baseParam, OrderDetlLog.class); |
| | | List<OrderDetlLog> data = orderDetlLogService.list(pageParam.buildWrapper(true)); |
| | | |
| | | ExcelUtil.build(ExcelUtil.create(data, OrderDetlLog.class), response); |
| | | } |
| | | |
| | | } |