package com.srs.flowable.domain;

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 com.srs.common.annotation.Excel;
import com.srs.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.util.Date;


/**
 * 外宿申请审批记录对象 dms_outside_accommodation_approval
 *
 * @author srs
 * @date 2025-12-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "DmsOutsideAccommodationApproval对象", description = "外宿申请审批记录表")
@TableName("dms_outside_accommodation_approval")
public class OutsideAccommodationApproval extends BaseEntity {
    private static final long serialVersionUID = 1L;

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

    /**
     * 外宿申请ID（关联申请表）
     */
    @ApiModelProperty("外宿申请ID（关联申请表）")
    @TableField("apply_id")
    @Excel(name = "外宿申请ID", readConverterExp = "关=联申请表")
    private Long applyId;

    /**
     * 申请编号
     */
    @ApiModelProperty("申请编号")
    @TableField("apply_no")
    @Excel(name = "申请编号")
    private String applyNo;

    /**
     * 审批节点
     */
    @ApiModelProperty("审批节点")
    @TableField("approval_node")
    @Excel(name = "审批节点")
    private String approvalNode;

    /**
     * 审批人ID
     */
    @ApiModelProperty("审批人ID")
    @TableField("approver_id")
    @Excel(name = "审批人ID")
    private Long approverId;

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

    /**
     * 审批人角色
     */
    @ApiModelProperty("审批人角色")
    @TableField("approver_role")
    @Excel(name = "审批人角色")
    private String approverRole;

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

    /**
     * 审批结果（1=同意，0=驳回）
     */
    @ApiModelProperty("审批结果（1=同意，0=驳回）")
    @TableField("approval_result")
    @Excel(name = "审批结果", readConverterExp = "1==同意，0=驳回")
    private Long approvalResult;

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

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

    /**
     * 学生姓名
     */
    @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;

}
