Skip to content

Commit

Permalink
[fix]修正Excel模板导出时数字格式配置丢失的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Nov 9, 2023
1 parent 10b9878 commit ffba58e
Show file tree
Hide file tree
Showing 9 changed files with 733 additions and 7 deletions.
Binary file modified nop-biz/src/test/resources/_vfs/nop/test/imp/template4.test.xlsx
Binary file not shown.
Binary file modified nop-biz/src/test/resources/io/nop/biz/impl/test_imp4.test.xlsx
Binary file not shown.
4 changes: 4 additions & 0 deletions nop-core/src/main/java/io/nop/core/model/table/ICellView.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ default int getRowSpan() {
*/
Object getValue();

default boolean isExportFormattedValue(){
return false;
}

default Object getFormattedValue() {
return getValue();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ public void setTargetDir(File targetDir) {
}

public File attachmentFile(String name) {
return new File(attachmentDir(), name);
File file = new File(attachmentDir(), name);
return file;
}

public File attachmentDir() {
Expand Down
Loading

0 comments on commit ffba58e

Please sign in to comment.