package org.dromara.erp.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 订单审核记录对象 t_Applet_Order_Audit
 * @Author: Antigravity
 */
@Data
@TableName("t_Applet_Order_Audit")
public class ErpOrderAudit implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 审核记录主键
     */
    @TableId(value = "FRowID")
    @JsonProperty("rowId")
    private String rowId;

    /**
     * 订单ID
     */
    @TableField("FOrderID")
    @JsonProperty("orderId")
    private String orderId;

    /**
     * 审核人
     */
    @TableField("FAuditor")
    private Long auditor;

    /**
     * 审核时间
     */
    @TableField("FAuditTime")
    private Date auditTime;

    /**
     * 审核结果(1-通过, 2-驳回)
     */
    @TableField("FAuditResult")
    @JsonProperty("auditResult")
    private Integer auditResult;

    /**
     * 驳回原因
     */
    @TableField("FRejectReason")
    private String rejectReason;

    /**
     * 创建部门
     */
    @TableField(value = "CreateDept", fill = FieldFill.INSERT)
    private Long createDept;

    /**
     * 创建者
     */
    @TableField(value = "CreateBy", fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "CreateTime", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新者
     */
    @TableField(value = "UpdateBy", fill = FieldFill.INSERT_UPDATE)
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "UpdateTime", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
