| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得设计资料") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-document:query')") |
| | | public CommonResult<MesPdDocumentRespVO> getDocument(@RequestParam("id") Long id) { |
| | | MesPdDocumentDO document = documentService.getDocument(id); |
| | | if (document == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得设计资料分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-document:query')") |
| | | public CommonResult<PageResult<MesPdDocumentRespVO>> getDocumentPage(@Valid MesPdDocumentPageReqVO pageReqVO) { |
| | | PageResult<MesPdDocumentDO> pageResult = documentService.getDocumentPage(pageReqVO); |
| | | return success(new PageResult<>(buildDocumentRespVOList(pageResult.getList()), pageResult.getTotal())); |