package com.sqx.modules.pay.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 lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 提现申请
 * @author fang
 * @date 2020/7/8
 */
@Data
@TableName("cash_out")
public class CashOut implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 申请提现id
     */
    @TableId(type = IdType.INPUT)
    private long id;

    /**
     * 申请时间
     */
    private String createAt;

    /**
     * 是否转账
     */
    private String outAt;

    /**
     * 提现金币
     */
    private String money;

    /**
     * 转账时间
     */
    private Boolean isOut;

    /**
     * 会员编号
     */
    private String relationId;

    /**
     * 用户id
     */
    private Long userId;

    @TableField(exist = false)
    private String userName;

    /**
     * 支付宝账号
     */
    private String zhifubao;

    /**
     * 支付宝姓名
     */
    private String zhifubaoName;

    /**
     * 订单编号
     */
    private String orderNumber;

    /**
     * 状态 0待转账 1成功 -1退款 2失败 3-待人工审核
     */
    private Integer state;

    /**
     * 原因
     */
    private String refund;

    /**
     * 手续费
     */
    private Double rate;

    private Long sysUserId;

    /**
     * 提现类型 1用户提现  2分销商提现
     */
    private Integer userType;

    @TableField(exist = false)
    private String startTime;

    @TableField(exist = false)
    private String endTime;

    @TableField(exist = false)
    private Integer status;

    @TableField(exist = false)
    private String sysUserName;

    /**
     * 是否同意提现 0不同意 1同意
     */
    @TableField(exist = false)
    private Integer isAgree;

    /**
     * 成功提现金额总和
     */
    @TableField(exist = false)
    private BigDecimal total;

    /**
     * 成功提现次数
     */
    @TableField(exist = false)
    private Long count;
    /**
     * 待复审金额
     */
    @TableField(exist = false)
    private BigDecimal verifyTotal;

    /**
     * 待复审笔数
     */
    @TableField(exist = false)
    private Long verifyCount;

    private Integer withdrawType;
}
