package com.hzs.common.domain.system.config;

import com.baomidou.mybatisplus.annotation.KeySequence;
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.hzs.common.core.annotation.Excel;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 提现设置主表
 * </p>
 *
 * @author zhangjing
 * @since 2022-08-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("BD_WITHDRAWAL")
@KeySequence("BD_WITHDRAWAL_SEQ")
public class BdWithdrawal extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Integer pkId;

    /**
     * 最低提现金额
     */
    @Excel(name = "最低提现金额(￥)")
    @TableField("MIN_AMOUNT")
    private BigDecimal minAmount;

    /**
     * 最高提现金额
     */
    @Excel(name = "最高提现金额(￥)")
    @TableField("MAX_AMOUNT")
    private BigDecimal maxAmount;

    /**
     * 最低自动提现金额
     */
    @Excel(name = "最低自动提现金额(￥)")
    @TableField("LOWER_BOUND")
    private BigDecimal lowerBound;

    /**
     * 最高自动提现金额
     */
    @Excel(name = "最高自动提现金额(￥)")
    @TableField("UPPER_BOUND")
    private BigDecimal upperBound;


    /**
     * 是否整取 0是 1否
     */
    @TableField("IS_ROUNDING")
    private Integer isRounding;

    /**
     * 是否自动提现 0是 1否
     */
    @TableField("IS_AUTO")
    private Integer isAuto;
    /**
     * 提现次数
     */
    @Excel(name = "提现次数")
    @TableField("WITHDRAWAL_NUMBER")
    private Integer withdrawalNumber;


    /**
     * 手续费比例
     */
    @Excel(name = "手续费比例")
    @TableField("SERVICE_RATIO")
    private BigDecimal serviceRatio;

    /**
     * 是否有个税 0是 1否
     */
    @TableField("IS_INCOME_TAX")
    private Integer isIncomeTax;

    /**
     * 生效日期
     */
    @Excel(name = "生效日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("EFFECTIVE_DATE")
    private Date effectiveDate;

    /**
     * 币种ID
     */
    @TableField("PK_ACCOUNT")
    private Integer pkAccount;


}
