package com.jeeplus.human.enrollment.enrollmentRegistration.service.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.core.domain.BaseEntity;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 入职人员登记
 * @author 王强
 * @version 1.0
 * @date 2023-09-27 14:14
 */
@Data
public class ExportDTO extends BaseEntity {
    private String userId;

    @Excel(name = "姓名",width = 25)
    private String name;                //姓名

    @Excel(name = "籍贯",width = 25)
    private String nativePlace;         //籍贯

    @Excel(name = "联系电话",width = 25)
    private String mobilePhone;         //联系电话
    @Excel(name = "身份证号码",width = 25)
    private String idCard;              //身份证号码

    @Excel(name = "所属部门",width = 25)
    private String departmentName;          //所属部门

    @TableField(exist = false)
    @Excel(name = "所属公司",width = 25)
    private String company;     //所属公司
    @Excel(name = "角色",width = 25)
    private String role;
    @Excel(name = "岗位",width = 25)
    private String post;
    @TableField(exist = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Excel(name = "进所日期",exportFormat = "yyyy-MM-dd",importFormat = "yyyy-MM-dd")
    private Date inDate;  //进所日期
    @Excel(name = "入职日期",width = 25)
    private String entryDate;           //进所日期

    @Excel(name = "毕业院校", width = 25)
    private String graduatedFrom;

    @Excel(name = "专业", width = 25)
    private String speciality;

    @Excel(name = "学位", width = 25, dict = "degree")
    private String degree;

    @Excel(name = "学历", width = 25, dict = "education")
    private String education;

    @Excel(name = "开始时间", width = 25, exportFormat = "yyyy-MM-dd")
    private Date educationStartDate;

    @Excel(name = "结束时间", width = 25, exportFormat = "yyyy-MM-dd")
    private Date educationEndDate;

    private String department;
    private String companyId;
}
