-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
增加Excel动态sheet和动态列演示。增加读取Excel所有sheet数据的快捷方法
- Loading branch information
1 parent
0412f2f
commit 5d896e9
Showing
6 changed files
with
66 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
nop-ooxml/nop-ooxml-xlsx/src/main/java/io/nop/ooxml/xlsx/util/ExcelSheetData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.nop.ooxml.xlsx.util; | ||
|
||
import io.nop.api.core.annotations.data.DataBean; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@DataBean | ||
public class ExcelSheetData { | ||
private String name; | ||
private List<Map<String, Object>> data; | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public List<Map<String, Object>> getData() { | ||
return data; | ||
} | ||
|
||
public void setData(List<Map<String, Object>> data) { | ||
this.data = data; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+9.18 KB
nop-ooxml/nop-ooxml-xlsx/src/test/resources/io/nop/ooxml/xlsx/utils/test-data.xlsx
Binary file not shown.
Binary file added
BIN
+12.6 KB
...port/nop-report-demo/src/main/resources/_vfs/nop/report/demo/base/12-动态Sheet和动态列.xpt.xlsx
Binary file not shown.