package com.ruoyi.staff.pojo; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import com.ruoyi.framework.aspectj.lang.annotation.Excel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.io.Serializable; import java.time.LocalDateTime; import java.util.Date; /** * 人员管理--员工台账/合同管理 * staff_on_job */ @TableName(value = "staff_on_job") @Data public class StaffOnJob implements Serializable { private static final long serialVersionUID = 1L; /** * 序号 */ @TableId(type = IdType.AUTO) private Long id; /** * 状态(0:离职;1:在职) */ @Excel(name = "状态",readConverterExp = "0=离职,1=在职") private Integer staffState; /** * 员工编号 */ @Excel(name = "员工编号") private String staffNo; /** * 员工姓名 */ @Excel(name = "员工姓名") private String staffName; /** * 性别 */ @Excel(name = "性别") private String sex; /** * 籍贯 */ @Excel(name = "籍贯") private String nativePlace; /** * 岗位 */ @Excel(name = "岗位") private String postJob; /** * 家庭住址 */ @Excel(name = "家庭住址") private String adress; /** * 第一学历 */ @Excel(name = "第一学历") private String firstStudy; /** * 专业 */ @Excel(name = "专业") private String profession; /** * 身份证号码 */ @Excel(name = "身份证号码") private String identityCard; /** * 年龄 */ @Excel(name = "年龄") private String age; /** * 联系电话 */ @Excel(name = "联系电话") private String phone; /** * 紧急联系人 */ @Excel(name = "紧急联系人") private String emergencyContact; /** * 紧急联系人电话 */ @Excel(name = "紧急联系人电话") private String emergencyContactPhone; /** * 合同年限 */ @Excel(name = "合同年限") private String contractTerm; /** * 合同到期日期 */ @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "合同到期日期", width = 30, dateFormat = "yyyy-MM-dd") private Date contractExpireTime; @ApiModelProperty(value = "创建时间") @TableField(fill = FieldFill.INSERT) private LocalDateTime createTime; @ApiModelProperty(value = "创建用户") @TableField(fill = FieldFill.INSERT) private Integer createUser; @ApiModelProperty(value = "修改时间") @TableField(fill = FieldFill.INSERT_UPDATE) private LocalDateTime updateTime; @ApiModelProperty(value = "修改用户") @TableField(fill = FieldFill.INSERT_UPDATE) private Integer updateUser; @ApiModelProperty(value = "租户ID") @TableField(fill = FieldFill.INSERT) private Long tenantId; }