| | |
| | | @GetMapping("/{id}/versions/{versionNo}") |
| | | public AjaxResult version(@PathVariable long id, @PathVariable int versionNo) { return success(service.get(id, versionNo)); } |
| | | |
| | | /** 导出仅返回指定已保存版本;不读取来源,也不记录浏览器无法确认的 PDF 保存结果。 */ |
| | | @PreAuthorize("@ss.hasPermi('system:compare-report:export')") |
| | | @GetMapping("/{id}/versions/{versionNo}/print") |
| | | public AjaxResult print(@PathVariable long id, @PathVariable int versionNo) { return success(service.get(id, versionNo)); } |
| | | |
| | | /** 修订 CSV 使用正式版本摘要,导出权限独立于历史查看权限。 */ |
| | | @PreAuthorize("@ss.hasPermi('system:compare-report:export')") |
| | | @GetMapping("/{id}/versions/export") |
| | | public AjaxResult exportHistory(@PathVariable long id) { return success(reports.history(id)); } |
| | | |
| | | /** 编辑权限可读取最新快照作为基准,无需来源测试权限。 */ |
| | | @PreAuthorize("@ss.hasPermi('system:compare-report:edit')") |
| | | @GetMapping("/{id}/editing") |