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