| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得模板版本") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('qc-report:template:query')") |
| | | public CommonResult<QcReportTemplateVersionRespVO> getVersion(@RequestParam("id") Long id) { |
| | | QcReportTemplateVersionDO version = versionService.getVersion(id); |
| | | return success(BeanUtils.toBean(version, QcReportTemplateVersionRespVO.class)); |
| | |
| | | @GetMapping("/list-by-template") |
| | | @Operation(summary = "获得模板的所有版本") |
| | | @Parameter(name = "templateId", description = "模板编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('qc-report:template:query')") |
| | | public CommonResult<List<QcReportTemplateVersionRespVO>> getVersionListByTemplateId( |
| | | @RequestParam("templateId") Long templateId) { |
| | | List<QcReportTemplateVersionDO> list = versionService.getVersionListByTemplateId(templateId); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得模板版本分页") |
| | | @PreAuthorize("@ss.hasPermission('qc-report:template:query')") |
| | | public CommonResult<PageResult<QcReportTemplateVersionRespVO>> getVersionPage( |
| | | @Valid QcReportTemplateVersionPageReqVO pageReqVO) { |
| | | PageResult<QcReportTemplateVersionDO> pageResult = versionService.getVersionPage(pageReqVO); |