com.zznote.basecommon.common.convert.ExcelDictConvert Maven / Gradle / Ivy
The newest version!
package com.zznote.basecommon.common.convert;
import cn.hutool.core.annotation.AnnotationUtil;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.ObjectUtil;
import com.alibaba.excel.converters.Converter;
import com.alibaba.excel.enums.CellDataTypeEnum;
import com.alibaba.excel.metadata.GlobalConfiguration;
import com.alibaba.excel.metadata.data.ReadCellData;
import com.alibaba.excel.metadata.data.WriteCellData;
import com.alibaba.excel.metadata.property.ExcelContentProperty;
import com.zznote.basecommon.common.annotation.ExcelDictFormat;
import com.zznote.basecommon.common.util.SpringUtils;
import com.zznote.basecommon.common.util.file.ExcelUtil;
import com.zznote.basecommon.service.DictService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import java.lang.reflect.Field;
/**
* 字典格式化转换处理
*
* @author zhangzhen
*/
@Slf4j
public class ExcelDictConvert implements Converter
© 2015 - 2024 Weber Informatics LLC | Privacy Policy