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.annotation.Transaction;
import com.hzs.common.core.constant.EnumsPrefixConstants;
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-11-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("BD_WITHDRAWAL_PROCESS")
@KeySequence("BD_WITHDRAWAL_PROCESS_SEQ")
public class BdWithdrawalProcess extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;
    /**
     * 手续费值
     */
    @Excel(name = "手续费值",sort = 2)
    @TableField("SERVICE_RATIO")
    private BigDecimal serviceRatio;
    /**
     * 手续费类型 1 按金额 2按比例 来源 ECalType
     */
    @TableField("SERVICE_TYPE")
    @Transaction(transactionKey = EnumsPrefixConstants.CAL_TYPE)
    private Integer serviceType;

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


}
