| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得出货检验单行") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-oqc:query')") |
| | | public CommonResult<MesQcOqcLineRespVO> getOqcLine(@RequestParam("id") Long id) { |
| | | MesQcOqcLineDO line = oqcLineService.getOqcLine(id); |
| | | return success(buildLineRespVOList(Collections.singletonList(line)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得出货检验单行分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-oqc:query')") |
| | | public CommonResult<PageResult<MesQcOqcLineRespVO>> getOqcLinePage(@Valid MesQcOqcLinePageReqVO pageReqVO) { |
| | | PageResult<MesQcOqcLineDO> pageResult = oqcLineService.getOqcLinePage(pageReqVO); |
| | | return success(new PageResult<>(buildLineRespVOList(pageResult.getList()), pageResult.getTotal())); |