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

org.ttzero.excel.processor.Converter#reversion不太好用 #405

Open
nasodaengineer opened this issue Dec 4, 2024 · 1 comment
Open

Comments

@nasodaengineer
Copy link
Contributor

nasodaengineer commented Dec 4, 2024

版本:0.5.20

image
这里传个String进来完全丢失了excel类型,建议传个Cell进来。我这边的excel存在一个单元格有多种类型的情况,统一取值为String比较难处理日期类型,目前只能通过row.getXXX解决,但还是希望能够有Bean + Converter的解决方案

@wangguanquan
Copy link
Owner

原有设计是想简化开发,Converter只包含最基础的数据处理不需要混入Row,Cell等信息,你反馈的场景确实存在此时就需要Row,Cell两个信息,可以将定义改为T reversion(Row row, Cell cell, Class<?> fieldClazz)或者T reversion(Row row, int colIndex, Class<?> fieldClazz);感兴趣的话可以提交PR增强此功能

wangguanquan pushed a commit that referenced this issue Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants