package org.springblade.modules.place.excel;
|
|
import com.alibaba.excel.annotation.ExcelProperty;
|
import com.alibaba.excel.annotation.format.DateTimeFormat;
|
import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
|
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.annotations.ApiModel;
|
import lombok.Data;
|
import org.springblade.common.excel.ExcelDictConverter;
|
import org.springblade.common.excel.ExcelDictItem;
|
import org.springblade.common.excel.ExcelDictItemLabel;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* 场所从业人员 实体类
|
*
|
* @author BladeX
|
* @since 2023-10-28
|
*/
|
@Data
|
@ColumnWidth(25)
|
@HeadRowHeight(20)
|
@ContentRowHeight(18)
|
public class PractitionerExcel implements Serializable {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 场所ID
|
*/
|
@ColumnWidth(15)
|
@ExcelProperty(value = "地址编码*")
|
private String houseCode;
|
|
/**
|
* 姓名
|
*/
|
@ColumnWidth(15)
|
@ExcelProperty(value = "姓名")
|
private String name;
|
|
/**
|
* 电话
|
*/
|
@ColumnWidth(15)
|
@ExcelProperty(value = "电话")
|
private String telephone;
|
|
/**
|
* 暂住地
|
*/
|
@ColumnWidth(15)
|
@ExcelProperty(value = "暂住地")
|
private String tempAddress;
|
|
/**
|
* 身份证
|
*/
|
@ColumnWidth(15)
|
@ExcelProperty(value = "身份证")
|
private String idCard;
|
|
/**
|
* 岗位
|
*/
|
@ExcelProperty(value = "岗位")
|
private String jobNature;
|
|
/**
|
* 民族
|
*/
|
@ColumnWidth(15)
|
@ExcelProperty(value = "民族", converter = ExcelDictConverter.class)
|
@ExcelDictItemLabel(type = "nationType")
|
@ExcelDictItem(type = "nationType")
|
private String ethnicity;
|
|
/**
|
* 入职时间
|
*/
|
// @ColumnWidth(15)
|
// @ExcelProperty(value = "入职时间")
|
// @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
// @DateTimeFormat("yyyy-MM-dd")
|
// private String employmentTime;
|
|
/**
|
* 离职时间
|
*/
|
// @ColumnWidth(15)
|
// @ExcelProperty(value = "离职时间")
|
// @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
|
// @DateTimeFormat("yyyy-MM-dd")
|
// private String resignationTime;
|
|
/**
|
* 是离职 1:否 2:是
|
*/
|
@ColumnWidth(15)
|
@ExcelProperty(value = "是离职 1:否 2:是")
|
private String resignationFlag;
|
|
}
|