| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得生产流转卡") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-card:query')") |
| | | public CommonResult<MesProCardRespVO> getCard(@RequestParam("id") Long id) { |
| | | MesProCardDO card = cardService.getCard(id); |
| | | if (card == null) { |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得生产流转卡分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:pro-card:query')") |
| | | public CommonResult<PageResult<MesProCardRespVO>> getCardPage(@Valid MesProCardPageReqVO pageReqVO) { |
| | | PageResult<MesProCardDO> pageResult = cardService.getCardPage(pageReqVO); |
| | | return success(new PageResult<>(buildCardRespVOList(pageResult.getList()), pageResult.getTotal())); |