| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得过程检验单") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ipqc:query')") |
| | | public CommonResult<MesQcIpqcRespVO> getIpqc(@RequestParam("id") Long id) { |
| | | MesQcIpqcDO ipqc = ipqcService.getIpqc(id); |
| | | return success(buildIpqcRespVOList(Collections.singletonList(ipqc)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得过程检验单分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ipqc:query')") |
| | | public CommonResult<PageResult<MesQcIpqcRespVO>> getIpqcPage(@Valid MesQcIpqcPageReqVO pageReqVO) { |
| | | PageResult<MesQcIpqcDO> pageResult = ipqcService.getIpqcPage(pageReqVO); |
| | | return success(new PageResult<>(buildIpqcRespVOList(pageResult.getList()), pageResult.getTotal())); |