-
Notifications
You must be signed in to change notification settings - Fork 54
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
数据为空时,表头也没有输出 #361
Comments
临时处理:覆写
|
这样处理可以满足要求,感谢! |
采纳!下个版本加入 |
更新到0.5.11版本,在没有数据的情况下,ListMapSheet方式导出时,表头有输出,但是通过ListSheet(注解方式)导出时,表头没有输出。 |
没有数据时拿不到对象,也无法通过反射拿到,所以无法取到对象的注解。这种情况与JSON反序列化时遇到转泛型必须 指定TypeReference的情况一样,处理方式也一样 有两种方式解决,一是覆写getTClass方法,一种是覆写more方法
|
自定义导出列,当data中没有数据时,导出的Excel中,表头也没有,完全是一个空的表格。怎样设置,才能使得不管有没有数据,表头都会输出?
The text was updated successfully, but these errors were encountered: