mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
【功能修复】全局:SelectSheetWriteHandler 在没有任何 SelectSheetWriteHandler 的情况下,导致 Excel 导入不解析下拉框的问题
This commit is contained in:
parent
a31dd24399
commit
2c429263d0
@ -2,7 +2,6 @@ package cn.iocoder.yudao.framework.excel.core.handler;
|
|||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
import cn.hutool.core.lang.Assert;
|
import cn.hutool.core.lang.Assert;
|
||||||
import cn.hutool.core.map.MapUtil;
|
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
import cn.hutool.core.util.StrUtil;
|
import cn.hutool.core.util.StrUtil;
|
||||||
import cn.hutool.extra.spring.SpringUtil;
|
import cn.hutool.extra.spring.SpringUtil;
|
||||||
@ -55,12 +54,6 @@ public class SelectSheetWriteHandler implements SheetWriteHandler {
|
|||||||
private final Map<Integer, List<String>> selectMap = new HashMap<>();
|
private final Map<Integer, List<String>> selectMap = new HashMap<>();
|
||||||
|
|
||||||
public SelectSheetWriteHandler(Class<?> head) {
|
public SelectSheetWriteHandler(Class<?> head) {
|
||||||
// 加载下拉数据获取接口
|
|
||||||
Map<String, ExcelColumnSelectFunction> beansMap = SpringUtil.getBeanFactory().getBeansOfType(ExcelColumnSelectFunction.class);
|
|
||||||
if (MapUtil.isEmpty(beansMap)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 解析下拉数据
|
// 解析下拉数据
|
||||||
int colIndex = 0;
|
int colIndex = 0;
|
||||||
for (Field field : head.getDeclaredFields()) {
|
for (Field field : head.getDeclaredFields()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user