package com.sundot.airport.ledger.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sundot.airport.common.annotation.Excel;
import com.sundot.airport.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 员工附加分对象 score_employee_additional
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("score_employee_additional")
public class ScoreEmployeeAdditional extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 部门ID */
    private Long deptId;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 队室/班组ID */
    private Long teamId;

    /** 队室/班组 */
    @Excel(name = "队室/班组")
    private String teamName;

    /** 通道/小组ID */
    private Long groupId;

    /** 通道/小组 */
    @Excel(name = "通道/小组")
    private String groupName;

    /** 员工ID */
    private Long userId;

    /** 员工姓名 */
    @Excel(name = "员工姓名")
    private String userName;

    /** 附加分所属月份 */
    @JsonFormat(pattern = "yyyy-MM")
    @Excel(name = "附加分所属月份", width = 20, dateFormat = "yyyy-MM")
    private String monthOfRecord;

    /** 类型：1-加分，2-减分 */
    @Excel(name = "类型", readConverterExp = "1=加分,2=减分")
    private Integer type;

    /** 分值（员工画像附加分） */
    @Excel(name = "分值")
    private BigDecimal score;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /** 删除标志(0正常 2删除) */
    private String delFlag;
}
