| | |
| | | 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 { |
| | | |
| | |
| | | @TableField("deptName") |
| | | private String deptName = ""; |
| | | |
| | | @NotBlank(message = "{required}") |
| | | |
| | | @FieldInfo(name = "empNumb", type = "varchar", explain = "编号") |
| | | @TableField("empNumb") |
| | | @ExcelField(value = "编号") |
| | |
| | | @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) |
| | |
| | | @TableField("allDeptName") |
| | | private String allDeptName = ""; |
| | | |
| | | // @FieldInfo(name = "dimissRemark", type = "varchar", explain = "离职备注") |
| | | // @TableField("dimissRemark") |
| | | // private String dimissRemark = ""; |
| | | @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; |
| | | } |