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_node")
@ApiModel(value="ApproveNodeEntity对象", description="审批节点表")
public class ApproveNodeEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "审核类型：1:工资条 2:薪酬调整 3:销售提成 4:住宿补贴 5:应发应扣 6:考勤报表 7:社保审核 8:公积金审核,9:福利审核")
    @TableField("approve_type")
    private String approveType;

    @ApiModelProperty(value = "节点排序，从1开始")
    @TableField("node_sort")
    private Integer nodeSort;

    @ApiModelProperty(value = "节点名称")
    @TableField("node_name")
    private String nodeName;

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

    @ApiModelProperty(value = "分公司名称")
    @TableField("sub_company_name")
    private String subCompanyName;

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

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

    @ApiModelProperty(value = "消息通知人id，逗号隔开")
    @TableField("send_userids")
    private String sendUserids;

    @ApiModelProperty(value = "消息通知人姓名，逗号隔开")
    @TableField("send_user_names")
    private String sendUserNames;

    @ApiModelProperty(value = "发送给审批人的消息")
    @TableField("approve_message")
    private String approveMessage;

    @ApiModelProperty(value = "审核成功通知模板")
    @TableField("success_message")
    private String successMessage;

    @ApiModelProperty(value = "审核失败通知模板")
    @TableField("error_message")
    private String errorMessage;


}
