| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得归档台账") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-archive:query')") |
| | | public CommonResult<MesPdArchiveRespVO> getArchive(@RequestParam("id") Long id) { |
| | | MesPdArchiveDO archive = archiveService.getArchive(id); |
| | | if (archive == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得归档台账分页(按项目/产品聚合)") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-archive:query')") |
| | | public CommonResult<PageResult<MesPdArchiveRespVO>> getArchivePage(@Valid MesPdArchivePageReqVO pageReqVO) { |
| | | Page<MesPdArchiveGroupRespVO> page = new Page<>(pageReqVO.getPageNo(), pageReqVO.getPageSize()); |
| | | IPage<MesPdArchiveGroupRespVO> archivePage = archiveService.getArchivePageGroupByProject(pageReqVO, page); |
| | |
| | | @GetMapping("/detail-by-product") |
| | | @Operation(summary = "获得归档台账详情(按产品)") |
| | | @Parameter(name = "productCode", description = "产品编号", required = true, example = "1") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-archive:query')") |
| | | public CommonResult<List<MesPdArchiveDetailRespVO>> getArchiveDetailByProduct(@RequestParam("productCode") String productCode) { |
| | | return success(archiveService.getArchiveDetailByProductCode(productCode)); |
| | | } |