| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得销售出库单") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-sales:query')") |
| | | public CommonResult<MesWmProductSalesRespVO> getProductSales(@RequestParam("id") Long id) { |
| | | MesWmProductSalesDO sales = productSalesService.getProductSales(id); |
| | | if (sales == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得销售出库单分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-sales:query')") |
| | | public CommonResult<PageResult<MesWmProductSalesRespVO>> getProductSalesPage( |
| | | @Valid MesWmProductSalesPageReqVO pageReqVO) { |
| | | PageResult<MesWmProductSalesDO> pageResult = productSalesService.getProductSalesPage(pageReqVO); |
| | |
| | | @GetMapping("/check-quantity") |
| | | @Operation(summary = "校验销售出库单数量") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:wm-product-sales:query')") |
| | | public CommonResult<Boolean> checkProductSalesQuantity(@RequestParam("id") Long id) { |
| | | return success(productSalesService.checkProductSalesQuantity(id)); |
| | | } |