com.mg.common.metadata.util.MetaExcelExport Maven / Gradle / Ivy
package com.mg.common.metadata.util;
import com.mg.common.utils.DateUtil;
import com.mg.common.metadata.service.MEnumService;
import com.mg.framework.entity.metadata.MEnumEntity;
import com.mg.framework.entity.metadata.MirrorPropertyEntity;
import com.mg.framework.entity.metadata.MControllerTypeEnum;
import com.mg.framework.sys.PropertyConfigurer;
import com.mg.framework.entity.vo.TableHeaderCellVO;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.hssf.usermodel.*;
import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;
/**
* 处理Excel导出
*/
@Component
public class MetaExcelExport {
private Logger logger = LoggerFactory.getLogger(MetaExcelExport.class);
@Autowired
MEnumService mEnumService;
/**
* 导出Excel数据
*/
public String expExcel(List mproperties, List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy