Skip to content

解决导出带有字典选择列的数据时字典列错位的问题 #814

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zhaofs
Copy link

@zhaofs zhaofs commented May 1, 2025

修改后经过测试此问题已经解决

ExcelProperty excelProperty = field.getAnnotation(ExcelProperty.class);
if (excelProperty != null && excelProperty.index() != -1) {
colIndex = excelProperty.index();
if(field.isAnnotationPresent(ExcelProperty.class)){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以基于 master-jdk17 pull request 哇?

if (excelProperty != null && excelProperty.index() != -1) {
colIndex = excelProperty.index();
if(field.isAnnotationPresent(ExcelProperty.class)){
if (field.isAnnotationPresent(ExcelColumnSelect.class)) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

代码排版,有一些缩进的问题,可以优化下哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants