package com.muchinfo.mtp3pojos.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 com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 会员费用个性化配置表
 * </p>
 *
 * @author XKF
 * @since 2024-12-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("USERMARKETTRADECONFIG")
@ApiModel(value="Usermarkettradeconfig对象", description="会员费用个性化配置表")
public class Usermarkettradeconfig extends Model<Usermarkettradeconfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID")
    private Long userid;

    @ApiModelProperty(value = "市场ID-仓单贸易、竞拍、预售")
    @TableField("MARKETID")
    private Long marketid;

    @ApiModelProperty(value = "买方保证金方式 - 1：比率  2：固定")
    @TableField("BUYMARGINALGORITHM")
    private Integer buymarginalgorithm;

    @ApiModelProperty(value = "买方保证金设置值")
    @TableField("BUYMARGINVALUE")
    private BigDecimal buymarginvalue;

    @ApiModelProperty(value = "卖方保证金方式 - 1：比率  2：固定")
    @TableField("SELLMARGINALGORITHM")
    private Integer sellmarginalgorithm;

    @ApiModelProperty(value = "卖方保证金设置值")
    @TableField("SELLMARGINVALUE")
    private BigDecimal sellmarginvalue;

    @ApiModelProperty(value = "卖方保证金设置值(无仓单)")
    @TableField("SELLMARGINVALUE2")
    private BigDecimal sellmarginvalue2;

    @ApiModelProperty(value = "买方手续费收取方式 1：比率  2：固定")
    @TableField("BUYCHARGEALGORITHM")
    private Integer buychargealgorithm;

    @ApiModelProperty(value = "买方手续费设置值(交易所部分)")
    @TableField("BUYCHARGEALGORITHMVALUE")
    private BigDecimal buychargealgorithmvalue;

    @ApiModelProperty(value = "买方手续费设置值(会员部分)")
    @TableField("BUYCHARGEALGORITHMVALUE2")
    private BigDecimal buychargealgorithmvalue2;

    @ApiModelProperty(value = "卖方手续费收取方式  1：比率  2：固定")
    @TableField("SELLCHARGEALGORITHM")
    private Integer sellchargealgorithm;

    @ApiModelProperty(value = "卖方手续费设置值(交易所部分)")
    @TableField("SELLCHARGEALGORITHMVALUE")
    private BigDecimal sellchargealgorithmvalue;

    @ApiModelProperty(value = "卖方手续费设置值(会员部分)")
    @TableField("SELLCHARGEALGORITHMVALUE2")
    private BigDecimal sellchargealgorithmvalue2;


    @Override
    public Serializable pkVal() {
        return this.userid;
    }

}
