| | |
| | | package cc.mrbird.febs.server.hr.entity; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | import cc.mrbird.febs.common.core.annotation.FieldInfo; |
| | | import cc.mrbird.febs.common.core.converter.TimeConverter; |
| | | import cc.mrbird.febs.common.core.utils.DateDeSerializer; |
| | | import cc.mrbird.febs.common.core.utils.DateSerializer; |
| | | import cc.mrbird.febs.common.core.utils.DateTimeDeserializer; |
| | | import cc.mrbird.febs.common.core.utils.DateTimeSerializer; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.wuwenze.poi.annotation.Excel; |
| | | import com.wuwenze.poi.annotation.ExcelField; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.annotation.Version; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * name:EmpBaseinfo |
| | |
| | | * @since JDK1.8 |
| | | */ |
| | | @Data |
| | | @TableName("t_emp_baseInfo") |
| | | @TableName("t_emp_baseinfo") |
| | | @Excel("员工基本信息表") |
| | | public class EmpBaseInfo implements Serializable { |
| | | |
| | |
| | | @ExcelField(value = "档案号") |
| | | private String archivesNumb = ""; |
| | | |
| | | //@FieldInfo(name = "deptId", type = "bigint", explain = "部门Id") |
| | | @FieldInfo(name = "deptId", type = "bigint", explain = "部门Id") |
| | | @TableField("deptId") |
| | | private Long deptId = 0L; |
| | | |
| | | @FieldInfo(name = "deptName", type = "varchar", explain = "部门(护卫点)") |
| | | @TableField("deptName") |
| | | @ExcelField(value = "护卫点(部门)") |
| | | private String deptName = ""; |
| | | |
| | | @NotBlank(message = "{required}") |
| | | @FieldInfo(name = "empNumb", type = "varchar", explain = "员工编号") |
| | | |
| | | @FieldInfo(name = "empNumb", type = "varchar", explain = "编号") |
| | | @TableField("empNumb") |
| | | @ExcelField(value = "员工编号") |
| | | @ExcelField(value = "编号") |
| | | private String empNumb = ""; |
| | | |
| | | @NotBlank(message = "{required}") |
| | | @FieldInfo(name = "empName", type = "varchar", explain = "员姓名") |
| | | @FieldInfo(name = "empName", type = "varchar", explain = "姓名") |
| | | @TableField("empName") |
| | | @ExcelField(value = "员工姓名") |
| | | @ExcelField(value = "姓名") |
| | | private String empName = ""; |
| | | |
| | | @NotBlank(message = "{required}") |
| | |
| | | @ExcelField(value = "岗位名称") |
| | | private String jobName = ""; |
| | | |
| | | @NotBlank(message = "{required}") |
| | | // @NotBlank(message = "{required}") |
| | | @FieldInfo(name = "empType", type = "varchar", explain = "员工类别") |
| | | @TableField("empType") |
| | | @ExcelField(value = "员工类别", writeConverterExp = "1=正式工,2=临时工") |
| | |
| | | @TableField("certificateType") |
| | | private String certificateType = ""; |
| | | |
| | | @FieldInfo(name = "certificateNumb", type = "varchar", explain = "证件号码") |
| | | @FieldInfo(name = "certificateNumb", type = "varchar", explain = "身份证号码") |
| | | @TableField("certificateNumb") |
| | | @ExcelField(value = "证件号码") |
| | | @ExcelField(value = "身份证号码") |
| | | private String certificateNumb = ""; |
| | | |
| | | @FieldInfo(name = "nation", type = "varchar", explain = "民族") |
| | |
| | | @ExcelField(value = "民族") |
| | | private String nationName = ""; |
| | | |
| | | @FieldInfo(name = "certificateValidity", type = "date", explain = "证件有效期") |
| | | @FieldInfo(name = "certificateValidity", type = "date", explain = "身份证有效期") |
| | | @TableField("certificateValidity") |
| | | @JsonSerialize(using = DateSerializer.class) |
| | | @JsonDeserialize(using = DateDeSerializer.class) |
| | |
| | | @TableField("education") |
| | | private String education = ""; |
| | | |
| | | @FieldInfo(name = "educationName", type = "varchar", explain = "学历") |
| | | @FieldInfo(name = "educationName", type = "varchar", explain = "最高学历") |
| | | @TableField(exist = false) |
| | | @ExcelField(value = "最高学历") |
| | | private String educationName = ""; |
| | |
| | | @FieldInfo(name = "seniority", type = "tinyint", explain = "入司工龄") |
| | | @TableField("seniority") |
| | | @ExcelField(value = "入司工龄") |
| | | private Integer seniority = 0; |
| | | private String seniority = "0年0月"; |
| | | |
| | | @FieldInfo(name = "nativePlace", type = "varchar", explain = "籍贯") |
| | | @TableField("nativePlace") |
| | |
| | | @TableField("InsuranceType") |
| | | private String insuranceType = ""; |
| | | |
| | | @FieldInfo(name = "insuranceTypeName", type = "varchar", explain = "保险类型") |
| | | @FieldInfo(name = "insuranceTypeName", type = "varchar", explain = "社保档位") |
| | | @TableField(exist = false) |
| | | @ExcelField(value = "保险类型") |
| | | @ExcelField(value = "社保档位") |
| | | private String insuranceTypeName = ""; |
| | | |
| | | @FieldInfo(name = "socialNumb", type = "varchar", explain = "社保电脑号") |
| | |
| | | @TableField("certificateList") |
| | | private String certificateList = ""; |
| | | |
| | | //@FieldInfo(name = "certificateListName", type = "varchar", explain = "相关证件") |
| | | @FieldInfo(name = "certificateListName", type = "varchar", explain = "相关证件") |
| | | @TableField(exist = false) |
| | | @ExcelField(value = "相关证件", writeConverterExp = "1=高中毕业证,2=专科毕业证,3=本科毕业证") |
| | | private String certificateListName = ""; |
| | |
| | | |
| | | @FieldInfo(name = "entryType", type = "varchar", explain = "入职类型") |
| | | @TableField("entryType") |
| | | private String entryType = ""; |
| | | private String entryType; |
| | | |
| | | //@FieldInfo(name = "entryTypeName", type = "varchar", explain = "入职类型") |
| | | @FieldInfo(name = "entryTypeName", type = "varchar", explain = "入职类型") |
| | | @TableField(exist = false) |
| | | private String entryTypeName = "新入职"; |
| | | |
| | |
| | | |
| | | //@FieldInfo(name = "version", type = "int", explain = "记录版本号,用来进行乐观锁控制") |
| | | @TableField("version") |
| | | @Version |
| | | // @Version |
| | | private Integer version = 0; |
| | | |
| | | @FieldInfo(name = "remark", type = "varchar", explain = "离职备注") |
| | |
| | | @TableField(exist = false) |
| | | private String dimissionDateStr= ""; |
| | | |
| | | @FieldInfo(name = "dimissionTypeName", type = "varchar", explain = "离职类型") |
| | | @TableField(exist = false) |
| | | private String dimissionTypeName= ""; |
| | | |
| | |
| | | @TableField(exist = false) |
| | | private String contractStatus = ""; |
| | | |
| | | @FieldInfo(name = "contractPeriod", type = "tinyint", explain = "合同期限(年)") |
| | | @FieldInfo(name = "contractPeriod", type = "varchar", explain = "合同期限(年)") |
| | | @TableField(exist = false) |
| | | private Integer contractPeriod = 0; |
| | | private String contractPeriod; |
| | | |
| | | @FieldInfo(name = "transactor", type = "varchar", explain = "合同办理人") |
| | | @TableField(exist = false) |
| | |
| | | @FieldInfo(name = "empStatusName", type = "varchar", explain = "员工状态") |
| | | @TableField(exist = false) |
| | | private String empStatusName = ""; |
| | | |
| | | @TableField(exist = false) |
| | | private String inOutType; |
| | | |
| | | @FieldInfo(name = "allDeptName", type = "varchar", explain = "护卫点(部门)") |
| | | @ExcelField(value = "护卫点(部门)") |
| | | @TableField("allDeptName") |
| | | private String allDeptName = ""; |
| | | |
| | | @FieldInfo(name = "annualLeave", type = "int", explain = "年假天数") |
| | | @TableField("annualLeave") |
| | | private Integer annualLeave = 0; |
| | | |
| | | @FieldInfo(name = "probationDate", type = "date", explain = "转正日期") |
| | | @TableField("probationDate") |
| | | @JsonSerialize(using = DateSerializer.class) |
| | | @JsonDeserialize(using = DateDeSerializer.class) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @ExcelField(value = "转正日期", writeConverter = TimeConverter.class) |
| | | private Date probationDate; |
| | | |
| | | @FieldInfo(name = "probationStatus", type = "varchar", explain = "转正状态:0-待转正,1-已转正,2-解聘,3-延期") |
| | | @TableField("probationStatus") |
| | | private String probationStatus = ""; |
| | | |
| | | @FieldInfo(name = "probationStatusName", type = "varchar", explain = "转正状态") |
| | | @TableField(exist = false) |
| | | private String probationStatusName = ""; |
| | | |
| | | @FieldInfo(name = "retirementReminded", type = "tinyint", explain = "是否已提醒退休。0-未提醒 1-已提醒") |
| | | @TableField("retirementReminded") |
| | | private Integer retirementReminded = 0; |
| | | |
| | | @FieldInfo(name = "timeRange", type = "int", explain = "时间范围:0-当天 1-本周 2-本月 3-今年,默认2") |
| | | @TableField(exist = false) |
| | | private Integer timeRange; |
| | | } |