-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
使用hasNext方法提前退出excel的解析后, 没有执行 doAfterAllAnalysed 方法 #3159
Comments
感谢这么详细的描述,目前项目里的判断逻辑设计是:
目前你的需求建议把执行逻辑放在DemoReadListener中, 可以在invoke()的代码最开始加一个卫语句 if(!hasNext){
return;
} 这应该是一个设计缺陷,我们会调整一下用户手动终止的逻辑,感谢你的issue |
感谢你的答复,我现在实际项目中是按照上述方案处理的。 |
你好,我们发现此Issue已经超过三个月没有活动了,为了更好的帮助您解决问题,我们将在两周后关闭此Issue,如果您仍然有问题,请在两周内内回复此Issue,谢谢!如果您已经解决或者不需要帮助,请忽略此消息。 |
建议先去看文档
快速开始 、常见问题
异常代码
异常提示
无
问题描述
需求:
客户方提供的excel文档, [可能在数据行的下方存在参考档案的描述或其他信息,我需要读取其中有效的数据
问题点:
根据特定的判定数据行结束的逻辑结合hasNext方法实现了读取的提前退出, 但是如果数据行下方存在其他的参考档案时, 会导致 doAfterAllAnalysed 方法没有执行。
环境:
JDK1.8, easyexcel3.2.1, springboot2.6.13
The text was updated successfully, but these errors were encountered: