Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
liaochong committed Dec 16, 2023
1 parent 143123c commit 3fcba5b
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,12 @@ public static ExcelColumnMapping mapping(ExcelColumn excelColumn) {
result.image.setHeight(image.height());
}
com.github.liaochong.myexcel.core.annotation.DropdownList dr = excelColumn.dropdownList();
DropdownList drList = new DropdownList();
drList.setName(dr.name());
drList.setParent(dr.parent());
result.dropdownList = drList;
if (StringUtil.isNotBlank(dr.name()) || StringUtil.isNotBlank(dr.parent())) {
DropdownList drList = new DropdownList();
drList.setName(dr.name());
drList.setParent(dr.parent());
result.dropdownList = drList;
}
return result;
}
}

0 comments on commit 3fcba5b

Please sign in to comment.