package com.storlead.sales.pojo.entity.systemrule;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author YPZ
 * @since 2024-07-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("approve")
@ApiModel(value="ApproveEntity对象", description="")
public class ApproveEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "年份")
    @TableField("data_year")
    private Integer dataYear;

    @ApiModelProperty(value = "月份")
    @TableField("data_month")
    private Integer dataMonth;

    @ApiModelProperty(value = "分公司ID，为空时表示所有分公司")
    @TableField("sub_company_id")
    private String subCompanyId;

    @ApiModelProperty(value = "1:工资条 2:薪酬调整 3:销售提成 4:住宿补贴 5:应发应扣")
    @TableField("approve_type")
    private String approveType;

    @ApiModelProperty(value = "1：上级审核 2：总裁审核")
    @TableField("current_node")
    private String currentNode;

    @ApiModelProperty(value = "当前审核人")
    @TableField("approve_user_id")
    private Long approveUserId;

    @ApiModelProperty(value = "审核人名")
    @TableField("approve_user_name")
    private String approveUserName;

    @ApiModelProperty(value = "0：审批中 1：审批通过 2：审批不通过")
    @TableField("approve_status")
    private String approveStatus;

    @TableField(exist = false)
    @ApiModelProperty(value = "审批内容")
    private String approveContent;


}
