Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXCEL根据模板导出 报错 #33

Open
cmazxiaoma opened this issue Dec 28, 2020 · 0 comments
Open

EXCEL根据模板导出 报错 #33

cmazxiaoma opened this issue Dec 28, 2020 · 0 comments

Comments

@cmazxiaoma
Copy link

导出模板
image

如果导出参数map中没有设置导出模板中的属性值
调用ExcelExportUtil.exportExcel(params, map)会报错

报错的代码代码如下

image

PoiPublicUtil中的442行
应改成return ((Map) object).getOrDefault(params, "");

给模板中的属性值设置一个默认值

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant