| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得质检指标") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-indicator:query')") |
| | | public CommonResult<MesQcIndicatorRespVO> getIndicator(@RequestParam("id") Long id) { |
| | | MesQcIndicatorDO indicator = indicatorService.getIndicator(id); |
| | | return success(BeanUtils.toBean(indicator, MesQcIndicatorRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得质检指标分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-indicator:query')") |
| | | public CommonResult<PageResult<MesQcIndicatorRespVO>> getIndicatorPage(@Valid MesQcIndicatorPageReqVO pageReqVO) { |
| | | PageResult<MesQcIndicatorDO> pageResult = indicatorService.getIndicatorPage(pageReqVO); |
| | | PageResult<MesQcIndicatorRespVO> voPageResult = BeanUtils.toBean(pageResult, MesQcIndicatorRespVO.class); |
| | |
| | | |
| | | @GetMapping("/group-list") |
| | | @Operation(summary = "获得分组项精简列表", description = "只包含分组项,主要用于「所属分组」的下拉选项") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-indicator:query')") |
| | | public CommonResult<List<MesQcIndicatorRespVO>> getIndicatorGroupList() { |
| | | List<MesQcIndicatorDO> list = indicatorService.getIndicatorGroupList(); |
| | | return success(BeanUtils.toBean(list, MesQcIndicatorRespVO.class)); |