| | |
| | | @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) { |
| | | // 分页参数只能从 pageReqVO 取:签名里再放一个 Page 参数会被 Spring 单独按 current/size 绑定成默认的 1/10, |
| | | // 前端传的 pageNo/pageSize 全被丢掉,台账就永远只返回前 10 条、翻页也不动(列表看不出从 9/17 往后的日期)。 |
| | |
| | | @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)); |
| | | } |