| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得质检方案-检测指标项") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-template:query')") |
| | | public CommonResult<MesQcTemplateIndicatorRespVO> getTemplateIndicator(@RequestParam("id") Long id) { |
| | | MesQcTemplateIndicatorDO indicator = templateIndicatorService.getTemplateIndicator(id); |
| | | return success(buildIndicatorRespVOList(Collections.singletonList(indicator)).get(0)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得质检方案-检测指标项分页") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-template:query')") |
| | | public CommonResult<PageResult<MesQcTemplateIndicatorRespVO>> getTemplateIndicatorPage( |
| | | @Valid MesQcTemplateIndicatorPageReqVO pageReqVO) { |
| | | PageResult<MesQcTemplateIndicatorDO> pageResult = templateIndicatorService.getTemplateIndicatorPage(pageReqVO); |