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

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 会员特殊消费配置明细
 *
 * @author hzs
 * @since 2025-02-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("BD_MEMBER_SPECIAL_DETAIL_SEQ")
@TableName("BD_MEMBER_SPECIAL_DETAIL")
public class BdMemberSpecialDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 会员特殊消费配置主键
     */
    @TableField("PK_MEMBER_SPECIAL_CURRENCY")
    private Integer pkMemberSpecialCurrency;

    /**
     * 账户类型
     */
    @TableField("PK_ACCOUNT")
    private Integer pkAccount;

    /**
     * 扣除顺序
     */
    @TableField("DEDUCT_SORT")
    private Integer deductSort;

    /**
     * 扣除比例
     */
    @TableField("DEDUCT_RATIO")
    private BigDecimal deductRatio;

    /**
     * 扣款最大比例（0为不限制）
     */
    @TableField("DEDUCT_MAX_RATIO")
    private BigDecimal deductMaxRatio;


}
