| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得产品档案") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-product:query')") |
| | | public CommonResult<MesPdProductRespVO> getProduct(@RequestParam("id") Long id) { |
| | | return success(productService.getProduct(id)); |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得产品档案分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-product:query')") |
| | | public CommonResult<PageResult<MesPdProductRespVO>> getProductPage(@Valid MesPdProductPageReqVO pageReqVO) { |
| | | return success(productService.getProductPage(pageReqVO)); |
| | | } |