package com.chushang.loan.domin.entity;

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.chushang.common.mybatis.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 借贷业务数据表 实体类。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "loan_aduit")
@Builder
public class LoanAduitEntity extends BaseEntity {

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

    /**
     * 贷款id
     */
    @TableField(value = "load_id")
    private Long loadId;

    /**
     * 跟进状态 1 待审核  2 审核成功  3 审核拒绝
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 审批人id
     */
    @TableField(value = "approver_id")
    private Long approverId;

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

    /**
     * 审批时间
     */
    @TableField(value = "approver_time")
    private LocalDateTime approverTime;

    /**
     * 拒绝原因
     */
    @TableField(value = "denial_reason")
    private String denialReason;


}
