package com.hzs.common.domain.member.account;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hzs.common.core.web.domain.BusinessEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 会员提现表
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("CU_MEMBER_WITHDRAW")
@KeySequence("CU_MEMBER_WITHDRAW_SEQ")
public class CuMemberWithdraw extends BusinessEntity {


    private static final long serialVersionUID = 9154065781589602007L;
    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 会员编号
     */
    @TableField("PK_MEMBER")
    private Long pkMember;

    /**
     * 申请单号
     */
    @TableField("WITHDRAW_CODE")
    private String withdrawCode;

    /**
     * 账号类型(来源参照：币种配置)
     */
    @TableField("PK_ACCOUNT")
    private Integer pkAccount;

    /**
     * 银行信息
     */
    @TableField("PK_BANK")
    private Long pkBank;

    /**
     * 汇率
     */
    @TableField("PK_RATE")
    private Integer pkRate;

    /**
     * 提现金额
     */
    @TableField("CASH_AMOUNT")
    private BigDecimal cashAmount;

    /**
     * 手续费
     */
    @TableField("SERVICE_CHARGE")
    private BigDecimal serviceCharge;

    /**
     * 个人所得税
     */
    @TableField("INCOME_TAX")
    private BigDecimal incomeTax;

    /**
     * 实发金额
     */
    @TableField("ISSUED_AMOUNT")
    private BigDecimal issuedAmount;


    /**
     * 打款日期
     */
    @TableField("PAYMENT_TIME")
    private Date paymentTime;

    /**
     * 打款人
     */
    @TableField("PAYER")
    private Long payer;

    /**
     * 备注
     */
    @TableField("REMARKS")
    private String remarks;

    /**
     * 角色ID
     */
    @TableField("PK_ROLE")
    private Long pkRole;

    /**
     * 角色名称
     */
    @TableField("ROLE_NAME")
    private String roleName;

    /**
     * 状态
     */
    @TableField("STATUS")
    private Integer status;

    /**
     * 打款备注
     */
    @TableField("PAYER_REMARKS")
    private String payerRemarks;

    /**
     * 批次
     */
    @TableField("BATCH")
    private String batch;

}
