package com.srs.flowable.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.srs.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import com.srs.common.core.domain.BaseEntity;


/**
 * 保留学籍审批记录对象 rt_enlistment_reserve_approval
 *
 * @author srs
 * @date 2025-11-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "RtEnlistmentReserveApproval对象", description = "保留学籍审批记录")
@TableName("rt_enlistment_reserve_approval")
public class EnlistmentReserveApproval extends BaseEntity {
    private static final long serialVersionUID = 1L;

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

    /**
     * 申请表ID
     */
    @ApiModelProperty("申请表ID")
    @TableField("apply_id")
    @Excel(name = "申请表ID")
    private Long applyId;

    /**
     * 流程实例ID
     */
    @ApiModelProperty("流程实例ID")
    @TableField("process_instance_id")
    @Excel(name = "流程实例ID")
    private String processInstanceId;

    /**
     * Flowable任务ID
     */
    @ApiModelProperty("Flowable任务ID")
    @TableField("task_id")
    @Excel(name = "Flowable任务ID")
    private String taskId;

    /**
     * 审批节点（辅导员/学务等）
     */
    @ApiModelProperty("审批节点（辅导员/学务等）")
    @TableField("node_name")
    @Excel(name = "审批节点", readConverterExp = "辅=导员/学务等")
    private String nodeName;

    /**
     * 审批人ID（关联sys_user）
     */
    @ApiModelProperty("审批人ID（关联sys_user）")
    @TableField("approver_id")
    @Excel(name = "审批人ID", readConverterExp = "关=联sys_user")
    private Long approverId;

    /**
     * 审批人姓名
     */
    @ApiModelProperty("审批人姓名")
    @TableField("approver_name")
    @Excel(name = "审批人姓名")
    private String approverName;

    /**
     * 审批意见
     */
    @ApiModelProperty("审批意见")
    @TableField("approval_opinion")
    @Excel(name = "审批意见")
    private String approvalOpinion;

    /**
     * 审批结果（1-通过
     */
    @ApiModelProperty("审批结果（1-通过")
    @TableField("approval_result")
    @Excel(name = "审批结果", readConverterExp = "审批结果（1-通过")
    private Long approvalResult;

    /**
     * 审批时间
     */
    @ApiModelProperty("审批时间")
    @TableField("approval_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approvalTime;

    /**
     * 姓名
     */
    @ApiModelProperty("姓名")
    @TableField("student_name")
    @Excel(name = "姓名")
    private String studentName;

    /**
     * 学号
     */
    @ApiModelProperty("学号")
    @TableField("student_no")
    @Excel(name = "学号")
    private String studentNo;

    /**
     * 签名
     */
    @ApiModelProperty("签名")
    @TableField("signature")
    @Excel(name = "签名")
    private String signature;

}
