| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得盘具计算记录") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc-reel:query')") |
| | | public CommonResult<ProductCtcReelRespVO> getReel(@RequestParam("id") Long id) { |
| | | ProductCtcReelDO reel = reelService.getReel(id); |
| | | if (reel == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得盘具计算记录分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc-reel:query')") |
| | | public CommonResult<PageResult<ProductCtcReelRespVO>> getReelPage(@Valid ProductCtcReelPageReqVO pageReqVO) { |
| | | PageResult<ProductCtcReelDO> pageResult = reelService.getReelPage(pageReqVO); |
| | | return success(new PageResult<>(buildReelRespVOList(pageResult.getList()), pageResult.getTotal())); |
| | |
| | | @GetMapping("/list-by-ctc") |
| | | @Operation(summary = "获得指定换位导线产品的盘具计算记录列表") |
| | | @Parameter(name = "ctcId", description = "换位导线产品ID", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:pd-ctc-reel:query')") |
| | | public CommonResult<List<ProductCtcReelRespVO>> getReelListByCtcId(@RequestParam("ctcId") Long ctcId) { |
| | | List<ProductCtcReelDO> list = reelService.getReelListByCtcId(ctcId); |
| | | return success(buildReelRespVOList(list)); |