| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.vincent.rsf.framework.common.Cools; |
| | | import com.vincent.rsf.framework.common.R; |
| | | import com.vincent.rsf.framework.exception.CoolException; |
| | | import com.vincent.rsf.server.common.utils.ExcelUtil; |
| | | import com.vincent.rsf.server.common.annotation.OperationLog; |
| | | import com.vincent.rsf.server.common.domain.BaseParam; |
| | |
| | | return R.ok().add(transferService.page(pageParam, pageParam.buildWrapper(true))); |
| | | } |
| | | |
| | | @ApiOperation("获取调拔单关联订单") |
| | | @PreAuthorize("hasAuthority('manager:transfer:list')") |
| | | @PostMapping("/transfer/orders/page") |
| | | public R getTransferInfo(@RequestBody Map<String, Object> map) { |
| | |
| | | return R.ok().add(transferService.transfersPage(pageParam, pageParam.buildWrapper(true))); |
| | | } |
| | | |
| | | @ApiOperation("调拔单生成出库单") |
| | | @PreAuthorize("hasAuthority('manager:transfer:list')") |
| | | @PostMapping("/transfer/pub/outStock") |
| | | public R genOutstock(@RequestBody Transfer transfer) { |
| | | if (Objects.isNull(transfer)) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | return R.ok(transferService.genOutStock(transfer, getLoginUserId())); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:transfer:list')") |
| | | @PostMapping("/transfer/list") |
| | | public R list(@RequestBody Map<String, Object> map) { |