package com.zksy.info.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
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 java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 员工合同管理表
 * @TableName e_employee_master
 */
@TableName(value ="e_employee_master")
@Data
public class EEmployeeMaster implements Serializable {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.ASSIGN_UUID)
    @ExcelIgnore
    private String id;

    /**
     * 员工工号
     */
    @ExcelProperty(value = "员工工号")
    @ApiModelProperty(value = "员工工号")
    private String employeeNo;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名")
    @ApiModelProperty(value = "姓名")
    private String fullName;

    /**
     * 入职日期
     */
    @ExcelProperty(value = "入职日期")
    @ApiModelProperty(value = "入职日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate hireDate;

    /**
     * 离职日期
     */
    @ExcelProperty(value = "离职日期")
    @ApiModelProperty(value = "离职日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate terminationDate;

    /**
     * 联系电话
     */
    @ExcelProperty(value = "联系电话")
    @ApiModelProperty(value = "联系电话")
    private String contactPhone;

    /**
     * 当前合同编号
     */
    @ExcelProperty(value = "当前合同编号")
    @ApiModelProperty(value = "当前合同编号")
    private String contractNo;

    /**
     * 合同类型
     */
    @ExcelProperty(value = "合同类型")
    @ApiModelProperty(value = "合同类型")
    private String contractType;

    /**
     * 合同开始日期
     */
    @ExcelProperty(value = "合同开始日期")
    @ApiModelProperty(value = "合同开始日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate contractStartDate;

    /**
     * 合同结束日期
     */
    @ExcelProperty(value = "合同结束日期")
    @ApiModelProperty(value = "合同结束日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate contractEndDate;

    /**
     * 合同状态
     */
    @ExcelProperty(value = "合同状态")
    @ApiModelProperty(value = "合同状态('有效', '已到期', '已解除', '已终止')")
    private String contractStatus;

    /**
     * 工资
     */
    @ExcelProperty(value = "工资")
    @ApiModelProperty(value = "工资")
    private BigDecimal salary;

    /**
     * 创建时间
     */
    @ExcelIgnore
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ExcelIgnore
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}