| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得产品收货单") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-receipt:query')") |
| | | public CommonResult<MesWmProductReceiptRespVO> getProductReceipt(@RequestParam("id") Long id) { |
| | | MesWmProductReceiptDO receipt = productReceiptService.getProductReceipt(id); |
| | | if (receipt == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得产品收货单分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-receipt:query')") |
| | | public CommonResult<PageResult<MesWmProductReceiptRespVO>> getProductReceiptPage( |
| | | @Valid MesWmProductReceiptPageReqVO pageReqVO) { |
| | | PageResult<MesWmProductReceiptDO> pageResult = productReceiptService.getProductReceiptPage(pageReqVO); |
| | |
| | | @GetMapping("/check-quantity") |
| | | @Operation(summary = "校验产品收货单明细数量") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-receipt:query')") |
| | | public CommonResult<Boolean> checkProductReceiptQuantity(@RequestParam("id") Long id) { |
| | | return success(productReceiptService.checkProductReceiptQuantity(id)); |
| | | } |