doum
2025-09-08 863ec3280a6376c39a51144e1731c548300539ca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package com.doumee.core.annotation.excel;
 
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.ss.usermodel.*;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.multipart.MultipartFile;
 
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
 
/**
 * 导入Excel文件(支持“XLS”和“XLSX”格式)
 */
public class ExcelSecondInfo {
 
    private static Logger log = LoggerFactory.getLogger(ExcelSecondInfo.class);
 
    /**
     * 工作薄对象
     */
 
    private String text;
 
    /**
     * 工作表对象
     */
    private int columnNum;
 
    public String getText() {
        return text;
    }
 
    public void setText(String text) {
        this.text = text;
    }
 
    public int getColumnNum() {
        return columnNum;
    }
 
    public void setColumnNum(int columnNum) {
        this.columnNum = columnNum;
    }
}