Commit 2c429263d0f59d5c61fe0220e6be43d1e2ae4205
1 parent
a31dd243
【功能修复】全局:SelectSheetWriteHandler 在没有任何 SelectSheetWriteHandler 的情况下,导致 Excel 导入不解析下拉框的问题
Showing
1 changed file
with
0 additions
and
7 deletions
yudao-framework/yudao-spring-boot-starter-excel/src/main/java/cn/iocoder/yudao/framework/excel/core/handler/SelectSheetWriteHandler.java
| @@ -2,7 +2,6 @@ package cn.iocoder.yudao.framework.excel.core.handler; | @@ -2,7 +2,6 @@ package cn.iocoder.yudao.framework.excel.core.handler; | ||
| 2 | 2 | ||
| 3 | import cn.hutool.core.collection.CollUtil; | 3 | import cn.hutool.core.collection.CollUtil; |
| 4 | import cn.hutool.core.lang.Assert; | 4 | import cn.hutool.core.lang.Assert; |
| 5 | -import cn.hutool.core.map.MapUtil; | ||
| 6 | import cn.hutool.core.util.ObjectUtil; | 5 | import cn.hutool.core.util.ObjectUtil; |
| 7 | import cn.hutool.core.util.StrUtil; | 6 | import cn.hutool.core.util.StrUtil; |
| 8 | import cn.hutool.extra.spring.SpringUtil; | 7 | import cn.hutool.extra.spring.SpringUtil; |
| @@ -55,12 +54,6 @@ public class SelectSheetWriteHandler implements SheetWriteHandler { | @@ -55,12 +54,6 @@ public class SelectSheetWriteHandler implements SheetWriteHandler { | ||
| 55 | private final Map<Integer, List<String>> selectMap = new HashMap<>(); | 54 | private final Map<Integer, List<String>> selectMap = new HashMap<>(); |
| 56 | 55 | ||
| 57 | public SelectSheetWriteHandler(Class<?> head) { | 56 | public SelectSheetWriteHandler(Class<?> head) { |
| 58 | - // 加载下拉数据获取接口 | ||
| 59 | - Map<String, ExcelColumnSelectFunction> beansMap = SpringUtil.getBeanFactory().getBeansOfType(ExcelColumnSelectFunction.class); | ||
| 60 | - if (MapUtil.isEmpty(beansMap)) { | ||
| 61 | - return; | ||
| 62 | - } | ||
| 63 | - | ||
| 64 | // 解析下拉数据 | 57 | // 解析下拉数据 |
| 65 | int colIndex = 0; | 58 | int colIndex = 0; |
| 66 | for (Field field : head.getDeclaredFields()) { | 59 | for (Field field : head.getDeclaredFields()) { |