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
| package com.ycl.jxkg.domain.vo.admin.user;
|
| import com.alibaba.excel.annotation.ExcelIgnore;
| import com.alibaba.excel.annotation.ExcelProperty;
| import com.alibaba.excel.annotation.write.style.ColumnWidth;
| import lombok.Data;
| import lombok.experimental.Accessors;
|
| /**
| * @author gonghl
| */
| @Data
| @Accessors(chain = true)
| @ColumnWidth(20)
| public class UserExcelVo {
|
| @ExcelProperty("用户名")
| private String userName;
|
| @ExcelIgnore
| private String password;
|
| @ExcelProperty("真实姓名")
| private String realName;
|
| @ExcelProperty("年龄")
| private Integer age;
|
| @ExcelProperty("1.男 2女")
| private Integer sex;
|
| @ExcelProperty("出生日期")
| private String birthDay;
|
| @ExcelProperty("手机号")
| private String phone;
|
| @ExcelProperty("1.学生 2.老师")
| private Integer role;
|
| }
|
|