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

支持树形结构的导出 #2479

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lalala8462
Copy link

目前业务系统中需要导出树形结构的数据,目前看esayexcel中不支持设置 groupRow
所以新增了一个 WriteTreeData 类 支持定义父子级关系数据
在 com.alibaba.excel.write.executor.ExcelWriteAddExecutor#add 中判断数据类型
当为 WriteTreeData 时递归遍历子数据集 然后 sheet.groupRow

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Wish seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@lalala8462 lalala8462 requested a review from jiegao611 January 19, 2023 01:10
@opcooc
Copy link

opcooc commented Jun 18, 2024

这个可以啊 有些导出确实是树层级的 good good

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

Successfully merging this pull request may close these issues.

4 participants