| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得缺陷类型") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-defect:query')") |
| | | public CommonResult<MesQcDefectRespVO> getDefect(@RequestParam("id") Long id) { |
| | | MesQcDefectDO defect = defectService.getDefect(id); |
| | | return success(BeanUtils.toBean(defect, MesQcDefectRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得缺陷类型分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-defect:query')") |
| | | public CommonResult<PageResult<MesQcDefectRespVO>> getDefectPage(@Valid MesQcDefectPageReqVO pageReqVO) { |
| | | PageResult<MesQcDefectDO> pageResult = defectService.getDefectPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MesQcDefectRespVO.class)); |