Skip to content
This repository was archived by the owner on Sep 4, 2025. It is now read-only.

fillexcel出现某些字段数据错行 #4120

@storv

Description

@storv

建议先去看文档

快速开始常见问题

触发场景描述

选择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);
Image 期望效果 Image 实际效果 Image

提示的异常或者没有达到的效果

大家尽量把问题一次性描述清楚,然后贴上全部异常,这样方便把问题一次性解决掉。
至少大家要符合一个原则就是,能让其他人复现出这个问题,如果无法复现,肯定无法解决。

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions