mitao
2024-04-19 b21c37b7899b17dede7773db3c799aab1063ae1c
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
61
62
63
64
65
66
67
68
69
70
71
72
73
package com.finance.web.controller.excel;
 
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.excel.annotation.ExcelProperty;
import com.finance.common.enums.DisabledEnum;
import com.finance.web.controller.conveter.CountyFlagConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
import java.io.Serializable;
 
/**
 * <p>
 * 部门管理表
 * </p>
 *
 * @author mitao
 * @since 2024-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="部门导入Excel对象")
public class DeptExcel implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty(value = "部门地区")
    @Excel(name = "部门地区")
    @ExcelProperty(value = "部门地区",index = 0)
    private String areaName;
 
    @ApiModelProperty(value = "别名")
    @Excel(name = "别名")
    @ExcelProperty(value = "别名",index = 1)
    private String areaAlias;
 
    @ApiModelProperty(value = "区划代码")
    @Excel(name = "区划代码")
    @ExcelProperty(value = "区划代码",index = 2)
    private String areaCode;
 
    @ApiModelProperty(value = "级次(省、市、县)")
    @Excel(name = "级次(省、市、县)")
    @ExcelProperty(value = "级次 (省、市、县)",index = 3)
    private String areaLevel;
 
    @ApiModelProperty(value = "县级标志(不包含直辖市的区 0:否 1:是)")
    @Excel(name = "县级标志 是/否",enumImportMethod = "getByDesc")
    @ExcelProperty(value = "县级标志 是/否",index = 4,converter = CountyFlagConverter.class)
    private DisabledEnum countyFlag;
 
    @ApiModelProperty(value = "登录账号")
    @Excel(name = "登录账号")
    @ExcelProperty(value = "登录账号",index = 6)
    private String userName;
 
    @ApiModelProperty(value = "负责人姓名")
    @ExcelProperty(value = "负责人姓名",index = 5)
    private String personInCharge;
 
    @ApiModelProperty(value = "联系电话")
    @Excel(name = "联系电话")
    @ExcelProperty(value = "联系电话",index = 7)
    private String phoneNumber;
 
    @ApiModelProperty(value = "登录密码")
    @Excel(name = "登录密码")
    @ExcelProperty(value = "登录密码",index = 8)
    private String password;
 
}