TestEntity.java
1.1 KB
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
57
58
59
60
package com.framework.excel;
public class TestEntity {
@ExcelAnnotation(name = "序号", column = "A")
private int id;
@ExcelAnnotation(name = "姓名", column = "B", isExport = true)
private String name;
@ExcelAnnotation(name = "年龄", column = "C", prompt = "年龄保密哦!")
private int age;
@ExcelAnnotation(name = "班级", column = "D", combo = {"五期提高班", "六期提高班", "七期提高班" })
private String clazz;
@ExcelAnnotation(name = "公司", column = "F")
private String company;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getClazz() {
return clazz;
}
public void setClazz(String clazz) {
this.clazz = clazz;
}
public String getCompany() {
return company;
}
public void setCompany(String company) {
this.company = company;
}
}