报表基础模块:1、新增通用预览下载接口内部调用接口修正;2、ureport的poi版本区别于dependencies;

This commit is contained in:
gaoqr
2025-02-14 14:42:10 +08:00
parent 39cb17a1a2
commit 5ffd6daaa6
2 changed files with 11 additions and 2 deletions
@@ -135,6 +135,11 @@
<version>${commons-text.version}</version>
</dependency>
<!--ureport-core 相关start-->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>${poi-ooxml.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-full</artifactId>
@@ -148,6 +153,10 @@
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-lite</artifactId>
</exclusion>
<exclusion>
<artifactId>poi</artifactId>
<groupId>org.apache.poi</groupId>
</exclusion>
</exclusions>
<version>${poi-ooxml.version}</version>
</dependency>
@@ -145,8 +145,8 @@ public class ReportTemplateController {
@PostMapping("/template/download/{type}/common")
@Operation(summary = "模板预览下载")
@PreAuthorize("@ss.hasPermission('report:preview')")
public void commonPrint(@PathVariable @ReportTemplateProducerTypeInEnum @NotBlank(message = "模板下载类型不能为空") String type, @RequestBody ReportTemplatePreviewReqVO reqVO, HttpServletResponse response) {
templateService.download(type, reqVO, response);
public void commonPrint(@PathVariable @ReportTemplateProducerTypeInEnum @NotBlank(message = "模板下载类型不能为空") String type, @RequestBody ReportTemplateCommonPreviewReqVO reqVO, HttpServletResponse response) {
templateService.commonDownload(type, reqVO, response);
}
@PostMapping("/template/excel/import")