| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得流转卡工序记录") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-card:query')") |
| | | public CommonResult<MesProCardProcessRespVO> getCardProcess(@RequestParam("id") Long id) { |
| | | MesProCardProcessDO cardProcess = cardProcessService.getCardProcess(id); |
| | | if (cardProcess == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得流转卡工序记录分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-card:query')") |
| | | public CommonResult<PageResult<MesProCardProcessRespVO>> getCardProcessPage(@Valid MesProCardProcessPageReqVO pageReqVO) { |
| | | PageResult<MesProCardProcessDO> pageResult = cardProcessService.getCardProcessPage(pageReqVO); |
| | | return success(new PageResult<>(buildCardProcessRespVOList(pageResult.getList()), pageResult.getTotal())); |