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时,Model对象可以不使用注解指定index #15

Open
huiyadanli opened this issue Jan 19, 2018 · 0 comments
Open

导出Excel时,Model对象可以不使用注解指定index #15

huiyadanli opened this issue Jan 19, 2018 · 0 comments

Comments

@huiyadanli
Copy link

既然已经使用了 LinkedHashMap 按顺序指定了属性名和对应的列名,完全可以直接使用属性名来按顺序取Model对象对应值就可以了,不使用 @ExcelCell(index = ?) 注解来指定列的位置也可以进行导出,导出列很多的情况下标注每个的对象的位置很麻烦。

主要是在导出时,添加注解对导出对象有一定的侵入性,不想新建一个专门用来导出数据的对象并进行数据拷贝。

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