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

文档内容:不创建对象的写(可以使用maps设置head吗) #4079

Open
shanhm1991 opened this issue Jan 17, 2025 · 2 comments
Open
Labels
help wanted Extra attention is needed

Comments

@shanhm1991
Copy link

文档:https://easyexcel.opensource.alibaba.com/docs/current/quickstart/write#%E4%B8%8D%E5%88%9B%E5%BB%BA%E5%AF%B9%E8%B1%A1%E7%9A%84%E5%86%99

比如能不能这样:

Map<String, String> headMap = new HashMap<>();
headMap.put("id", "序号");
headMap.put("name", "名称");

List<Map<String, String>> rows = new ArrayList<>();
rows.add(Map.of("id", 1, "name", "xxx"));
...

然后交给easyexcel帮忙导出
@shanhm1991 shanhm1991 added the help wanted Extra attention is needed label Jan 17, 2025
@zhaoyunxing92
Copy link

有 list 的 AbstractParameterBuilder 保证顺序即可

@LSL1618
Copy link

LSL1618 commented Jan 21, 2025

不创建对象的写,看head()方法入参只支持List<List<String>>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants