package com.engine.salary.entity.extemp.po;


import com.engine.salary.annotation.TableTitle;
import com.engine.hrmelog.annotation.ElogTransform;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collection;
import java.util.Date;

/**
 * 外部人员
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
//hrsa_external_employee
@ElogTransform( name = "非系统人员")
public class ExtEmpPO {

    @ElogTransform(name = "主键id")
    private Long id;

    /**
     * 姓名
     */
    @TableTitle(title = "姓名", dataIndex = "username", key = "username")
    @ElogTransform(name = "姓名")
    private String username;

    /**
     * 部门
     */
    @TableTitle(title = "部门", dataIndex = "departmentName", key = "departmentName")
    @ElogTransform(name = "部门")
    private String departmentName;

    /**
     * 部门ID
     */
    @ElogTransform(name = "部门ID")
    private Long departmentId;

    /**
     * 分部
     */

    @TableTitle(title = "分部", dataIndex = "subcompanyName", key = "subcompanyName")
    @ElogTransform(name = "分部")
    private String subcompanyName;

    /**
     * 分部ID
     */
    @ElogTransform(name = "分部ID")
    private Long subcompanyId;

    /**
     * 岗位
     */
//    @TableTitle(title = "岗位", dataIndex = "jobtitleName", key = "jobtitleName")
    @ElogTransform(name = "岗位")
    private String jobtitleName;

    /**
     * 岗位ID
     */
    @ElogTransform(name = "岗位ID")
    private Long jobtitleId;

    /**
     * 入职日期
     */
    @TableTitle(title = "入职日期", dataIndex = "companystartdate", key = "companystartdate")
    @ElogTransform(name = "入职日期")
    private String companystartdate;

    /**
     * 手机
     */
    @ElogTransform(name = "手机")
    private String mobile;

    /**
     * 状态编码
     */
    @ElogTransform(name = "状态编码")
    private String status;

    /**
     * 工号
     */
    @TableTitle(title = "工号", dataIndex = "workcode", key = "workcode")
    @ElogTransform(name = "工号")
    private String workcode;

    /**
     * 性别
     */
    @ElogTransform(name = "性别")
    private String sex;

    /**
     * 邮件
     */
    @ElogTransform(name = "邮件")
    private String email;

    /**
     * 电话
     */
    @ElogTransform(name = "电话")
    private String telephone;

    /**
     * 职称
     */
    @ElogTransform(name = "职称")
    private String jobcall;

    /**
     * 出生日期
     */
    @ElogTransform(name = "出生日期")
    private String birthday;

    /**
     * 身份证号码
     */
    @ElogTransform(name = "身份证号码")
    private String idNo;

    /**
     * 本人开户的银行卡卡号
     */
    @ElogTransform(name = "本人开户的银行卡卡号")
    private String bankCardNum;

    /**
     * 本人开户的银行卡开户支行全称
     */
    @ElogTransform(name = "本人开户的银行卡开户支行全称")
    private String bankName;

    /**
     * 是否已删除。0：未删除、1：已删除
     */
    @ElogTransform(name = "是否已删除")
    private Integer deleteType;

    /**
     * 创建人
     */
    @ElogTransform(name = "创建人")
    private Long creator;

    /**
     * 修改人
     */
    @ElogTransform(name = "修改人")
    private Long modifier;

    /**
     * 创建时间
     */
    @ElogTransform(name = "创建时间")
    private Date createTime;

    /**
     * 修改时间
     */
    @ElogTransform(name = "修改时间")
    private Date updateTime;

    /**
     * 租户ID
     */
    @ElogTransform(name = "租户ID")
    private String tenantKey;

    private Collection<Long> ids;
    private Collection<Long> subcompanyIds;
    private Collection<Long> departmentIds;


    private String departmentOrgName;
    private String subcompanyOrgName;
}
