| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得过程检验单行") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ipqc:query')") |
| | | public CommonResult<MesQcIpqcLineRespVO> getIpqcLine(@RequestParam("id") Long id) { |
| | | MesQcIpqcLineDO line = ipqcLineService.getIpqcLine(id); |
| | | return success(buildLineRespVOList(Collections.singletonList(line)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得过程检验单行分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ipqc:query')") |
| | | public CommonResult<PageResult<MesQcIpqcLineRespVO>> getIpqcLinePage(@Valid MesQcIpqcLinePageReqVO pageReqVO) { |
| | | PageResult<MesQcIpqcLineDO> pageResult = ipqcLineService.getIpqcLinePage(pageReqVO); |
| | | return success(new PageResult<>(buildLineRespVOList(pageResult.getList()), pageResult.getTotal())); |