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 com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 部门员工统计表
 * @TableName e_department_employee_stats
 */
@TableName(value ="e_department_employee_stats")
@Data
public class EDepartmentEmployeeStats implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty("主键")
    @ExcelIgnore
    private String id;

    /**
     * 部门名称
     */
    @ApiModelProperty("部门名称")
    @ExcelProperty(value = "部门名称", index = 0)
    private String departmentName;

    /**
     * 内籍员工数量
     */
    @ApiModelProperty("内籍员工数量")
    @ExcelProperty(value = "内籍员工数量", index = 1)
    private Integer domesticEmployees;

    /**
     * 外籍员工数量
     */
    @ApiModelProperty("外籍员工数量")
    @ExcelProperty(value = "外籍员工数量", index = 2)
    private Integer foreignEmployees;

    /**
     * 男工比例
     */
    @ApiModelProperty("男工比例")
    @ExcelProperty(value = "男工比例", index = 3)
    private String maleRatio;

    /**
     * 女工比例
     */
    @ApiModelProperty("女工比例")
    @ExcelProperty(value = "女工比例", index = 4)
    private String femaleRatio;

    /**
     * 学历分布
     */
    @ApiModelProperty("学历分布")
    @ExcelProperty(value = "学历分布", index = 5)
    private String educationDistribution;

    /**
     * 年龄分布
     */
    @ApiModelProperty("年龄分布")
    @ExcelProperty(value = "年龄分布", index = 6)
    private String ageDistribution;

    /**
     * 员工总数
     */
    @ApiModelProperty("员工总数")
    @ExcelProperty(value = "员工总数", index = 7)
    private Integer totalEmployees;

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

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

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