| | |
| | | package cc.mrbird.febs.server.hr.entity; |
| | | |
| | | import java.util.Date; |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | | import cc.mrbird.febs.common.core.annotation.FieldInfo; |
| | | 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.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | 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; |
| | | |
| | | /** |
| | | * |
| | | * name:EmpWorkexperinece |
| | | * package:cc.mrbird.febs.server.hr.controller |
| | | * description:员工工作经历数据表映射实体 |
| | | * |
| | | * @author luoyibo |
| | | * @date 2021-01-24 20:35:04 |
| | | * @since JDK1.8 |
| | | */ |
| | | * name:EmpWorkexperience |
| | | * package:cc.mrbird.febs.server.hr.controller |
| | | * description:员工工作经历数据表映射实体 |
| | | * |
| | | * @author luoyibo |
| | | * @date 2021-01-28 12:33:31 |
| | | * @since JDK1.8 |
| | | */ |
| | | @Data |
| | | @TableName("t_emp_workexperinece") |
| | | public class EmpWorkExperience { |
| | | @TableName("t_emp_workExperience") |
| | | public class EmpWorkExperience implements Serializable { |
| | | |
| | | /** |
| | | * 工作经历Id |
| | | */ |
| | | @TableId(value = "workExpreienceId", type = IdType.AUTO) |
| | | private Long workExpreienceId; |
| | | @FieldInfo(name = "workExperienceId", type = "bigint", explain = "工作经历Id") |
| | | @TableId(value = "workExperienceId") |
| | | private Long workExperienceId; |
| | | |
| | | /** |
| | | * 员工Id |
| | | */ |
| | | @TableField("empId") |
| | | private Long empId; |
| | | @FieldInfo(name = "empId", type = "bigint", explain = "员工Id") |
| | | @TableField("empId") |
| | | private Long empId; |
| | | |
| | | /** |
| | | * 工作单位 |
| | | */ |
| | | @TableField("workUnit") |
| | | private String workUnit; |
| | | @FieldInfo(name = "empNumb", type = "varchar", explain = "员工编号") |
| | | @TableField("empNumb") |
| | | private String empNumb; |
| | | |
| | | /** |
| | | * 开始日期 |
| | | */ |
| | | @TableField("beginDate") |
| | | private Date beginDate; |
| | | @FieldInfo(name = "empName", type = "varchar", explain = "员工姓名") |
| | | @TableField("empName") |
| | | private String empName; |
| | | |
| | | @FieldInfo(name = "empStatus", type = "varchar", explain = "员工状态") |
| | | @TableField("empStatus") |
| | | private String empStatus = ""; |
| | | |
| | | /** |
| | | * 结束日期 |
| | | */ |
| | | @TableField("endDate") |
| | | private Date endDate; |
| | | @FieldInfo(name = "certificateNumb", type = "varchar", explain = "证件号码") |
| | | @TableField("certificateNumb") |
| | | private String certificateNumb; |
| | | |
| | | /** |
| | | * 主要工作内容 |
| | | */ |
| | | @TableField("jobContent") |
| | | private String jobContent; |
| | | @FieldInfo(name = "sex", type = "varchar", explain = "性别码,使用国标性别性别码") |
| | | @TableField("sex") |
| | | private String sex; |
| | | |
| | | /** |
| | | * 记录创建时间 |
| | | */ |
| | | @TableField("createTime") |
| | | private Date createTime; |
| | | @FieldInfo(name = "deptId", type = "bigint", explain = "部门Id") |
| | | @TableField("deptId") |
| | | private Long deptId = 0L; |
| | | |
| | | /** |
| | | * 记录创建人 |
| | | */ |
| | | @TableField("creator") |
| | | private String creator; |
| | | @FieldInfo(name = "deptName", type = "varchar", explain = "部门名称") |
| | | @TableField("deptName") |
| | | private String deptName = ""; |
| | | |
| | | /** |
| | | * 记录最后更新时间 |
| | | */ |
| | | @TableField("modifyTime") |
| | | private Date modifyTime; |
| | | @FieldInfo(name = "jobId", type = "bigint", explain = "岗位Id") |
| | | @TableField("jobId") |
| | | private Long jobId = 0L; |
| | | |
| | | /** |
| | | * 记录最后更新人 |
| | | */ |
| | | @TableField("modifier") |
| | | private String modifier; |
| | | @FieldInfo(name = "jobName", type = "varchar", explain = "岗位名称") |
| | | @TableField("jobName") |
| | | private String jobName = ""; |
| | | |
| | | /** |
| | | * 记录删除标志。0-未删除 1-已删除,默认0 |
| | | */ |
| | | @TableField("delFlag") |
| | | private Integer delFlag; |
| | | @FieldInfo(name = "workUnit", type = "varchar", explain = "工作单位") |
| | | @TableField("workUnit") |
| | | private String workUnit; |
| | | |
| | | /** |
| | | * 记录版本号,用来进行乐观锁控制 |
| | | */ |
| | | @TableField("version") |
| | | private Integer version; |
| | | @FieldInfo(name = "beginDate", type = "date", explain = "开始日期") |
| | | @TableField("beginDate") |
| | | @JsonSerialize(using = DateSerializer.class) |
| | | @JsonDeserialize(using = DateDeSerializer.class) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date beginDate; |
| | | |
| | | @FieldInfo(name = "endDate", type = "date", explain = "结束日期") |
| | | @TableField("endDate") |
| | | @JsonSerialize(using = DateSerializer.class) |
| | | @JsonDeserialize(using = DateDeSerializer.class) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | private Date endDate; |
| | | |
| | | @FieldInfo(name = "jobContent", type = "varchar", explain = "主要工作内容") |
| | | @TableField("jobContent") |
| | | private String jobContent; |
| | | |
| | | @FieldInfo(name = "createTime", type = "datetime", explain = "记录创建时间") |
| | | @TableField("createTime") |
| | | @JsonSerialize(using = DateTimeSerializer.class) |
| | | @JsonDeserialize(using = DateTimeDeserializer.class) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | @FieldInfo(name = "creator", type = "varchar", explain = "记录创建人") |
| | | @TableField("creator") |
| | | private String creator; |
| | | |
| | | @FieldInfo(name = "modifyTime", type = "datetime", explain = "记录最后更新时间") |
| | | @TableField("modifyTime") |
| | | @JsonSerialize(using = DateTimeSerializer.class) |
| | | @JsonDeserialize(using = DateTimeDeserializer.class) |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date modifyTime; |
| | | |
| | | @FieldInfo(name = "modifier", type = "varchar", explain = "记录最后更新人") |
| | | @TableField("modifier") |
| | | private String modifier; |
| | | |
| | | @FieldInfo(name = "delFlag", type = "bit", explain = "记录删除标志。0-未删除 1-已删除,默认0") |
| | | @TableField("delFlag") |
| | | private Integer delFlag; |
| | | |
| | | @FieldInfo(name = "version", type = "int", explain = "记录版本号,用来进行乐观锁控制") |
| | | @TableField("version") |
| | | @Version |
| | | private Integer version; |
| | | |
| | | } |