Coder Social home page Coder Social logo

gridexcel's People

Contributors

liuhuagui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gridexcel's Issues

excel有的空格无法识别到

我有个excel模板,里面有空格
但是有的空格无法识别,有的空格又能识别,请问下是什么原因额
我可以把模板excel发给您看看

20200327071.xlsx
第2-5列,只能识别到2个空行出来。 不知道是什么原因
望回答,谢谢

无实体读excel时有个问题

当单元格数据为空时 process cs 是不会读取单元格为空的数据的 这就会导致返回的每一行的数据长短不一致 这就没法确定 读指定的某一列数据

list.size=0时导出异常

GridExcel.writeByStreaming(RoyaltyProject.class)
.head(headMapper())
.createSheet()
.process(list)
.write(response.getOutputStream());
你好,当list.size == 0 的时候,程序直接抛异常了,无法导出excel,有替换方案吗?

gridexcel能返回表头信息吗

你好,我想在分批读取数据的同时也把表头信息返回到。
因为我要读取的excel列数可能不固定,所以我需要读取表头的列有多少,按照工具提供的方法我找了一下貌似不可以?如果按照第一行开始取数据的话又无法按设定的数值来分批次读取,请问有什么建议吗

GridExcel.readByEventModel遇到的疑问

你好,我有个产品excel中有504103行数据,使用GridExcel.readByEventModel读取excel的时候,设置windowSize=100,读取完之后我的List集合只有504100条数据,少了3条数据。但是设置windowSize=1的时候是正常的。引用代码如下:
List list = new ArrayList<>();
GridExcel.readByEventModel(ins, ProductDTO.class, ExcelType.XLSX)
.window(100, list::addAll)
.process(cs ->{
ProductDTO dto = new ProductDTO();
dto.setCompanyId(cs.get(0));
dto.setProductName(cs.get(1));
dto.setProductNo(cs.get(2));
dto.setBasePrice(new BigDecimal(cs.get(4)));
return dto;
},1);
System.out.println(list.size());
望解答,谢谢!

为何数据行跳着读取?

我的sheet1一共5条数据, 其他2个sheet没有数据,输出只看到第1,3,5数据,2和4没有输出。不知为何,谢谢!

GridExcel.readByEventModel(resourceAsStream,Product.class, ExcelType.XLSX)
        .window(2,ts ->
        {
            try{
                System.out.println("sheet" + mapper.writeValueAsString(ts));
            } catch (Exception e) {
                e.printStackTrace();
            }
        })//推荐在这里执行自己的业务逻辑
        .process(cs ->{
            Product product = new Product();
            product.setProductName(cs.get(0));
            return product;
        },1).get();

能否跳出循环?

先检查数据,如果有问题能否马上跳出循环?
另外能否取得当前行号?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.