| | |
| | | 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 = "entryType", type = "varchar", explain = "入职类型") |
| | | @TableField("entryType") |
| | | private String entryType = "20"; |
| | | private String entryType; |
| | | |
| | | @FieldInfo(name = "entryTypeName", type = "varchar", explain = "入职类型") |
| | | @TableField(exist = false) |
| | |
| | | @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; |
| | | } |