This repository was archived by the owner on Sep 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
fillexcel出现某些字段数据错行 #4120
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
建议先去看文档
触发场景描述
选择fill方式导出excel的时候,发现导出数据存在错行(应该在第二行的数据出现在了第一行)
触发Bug的代码
List<Map<String, String>> datas = new ArrayList<>();
Map<String, String> map = MapUtils.newHashMap();
map.put("skuId","1");
map.put("shorter2","");
datas.add(map);
Map<String, String> map1 = MapUtils.newHashMap();
map1.put("skuId","2");
map1.put("shorter","鸡");
datas.add(map1);
Map<String, String> map2 = MapUtils.newHashMap();
map2.put("skuId","3");
map2.put("shorter","狗");
datas.add(map2);
EasyExcel
.write(fileName)
.withTemplate(templateFileName)
.registerWriteHandler(new WriteHandlerNoLocked())
.sheet().doFill(datas);
期望效果
实际效果
提示的异常或者没有达到的效果
大家尽量把问题一次性描述清楚,然后贴上全部异常,这样方便把问题一次性解决掉。
至少大家要符合一个原则就是,能让其他人复现出这个问题,如果无法复现,肯定无法解决。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working