| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得出货检验单") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-oqc:query')") |
| | | public CommonResult<MesQcOqcRespVO> getOqc(@RequestParam("id") Long id) { |
| | | MesQcOqcDO oqc = oqcService.getOqc(id); |
| | | return success(buildOqcRespVOList(Collections.singletonList(oqc)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得出货检验单分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-oqc:query')") |
| | | public CommonResult<PageResult<MesQcOqcRespVO>> getOqcPage(@Valid MesQcOqcPageReqVO pageReqVO) { |
| | | PageResult<MesQcOqcDO> pageResult = oqcService.getOqcPage(pageReqVO); |
| | | return success(new PageResult<>(buildOqcRespVOList(pageResult.getList()), pageResult.getTotal())); |