| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得领料出库单") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-issue:query')") |
| | | public CommonResult<MesWmProductIssueRespVO> getProductIssue(@RequestParam("id") Long id) { |
| | | MesWmProductIssueDO issue = issueService.getProductIssue(id); |
| | | if (issue == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得领料出库单分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-issue:query')") |
| | | public CommonResult<PageResult<MesWmProductIssueRespVO>> getProductIssuePage( |
| | | @Valid MesWmProductIssuePageReqVO pageReqVO) { |
| | | PageResult<MesWmProductIssueDO> pageResult = issueService.getProductIssuePage(pageReqVO); |
| | |
| | | @GetMapping("/check-quantity") |
| | | @Operation(summary = "校验领料出库单数量", description = "校验每行明细数量之和是否等于行领料数量") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-issue:query')") |
| | | public CommonResult<Boolean> checkProductIssueQuantity(@RequestParam("id") Long id) { |
| | | return success(issueService.checkProductIssueQuantity(id)); |
| | | } |