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;
import java.util.Date;

/**
 * <p>
 * 扩展角色表
 * </p>
 *
 * @author XKF
 * @since 2024-12-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("MS_EXTENDROLE")
@ApiModel(value="MsExtendrole对象", description="扩展角色表")
public class MsExtendrole extends Model<MsExtendrole> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "扩展角色类型 - 1:特许经销商(中远) 2:金融服务商(中江) 3:核心企业(百色) 4:基金公司 5:回购商 6:供货商(尚志)")
    private Integer roletypeid;

    @ApiModelProperty(value = "机构用户ID")
    @TableField("AREAUSERID")
    private Long areauserid;

    @ApiModelProperty(value = "券转积分成本比率")
    @TableField("TRANSFERCOSTRATIO")
    private BigDecimal transfercostratio;

    @ApiModelProperty(value = "券转积分系数")
    @TableField("TRANSFERRATIO")
    private Long transferratio;

    @ApiModelProperty(value = "券转积分有效天数")
    @TableField("TRANSFERDAYS")
    private Long transferdays;

    @ApiModelProperty(value = "下属经销商券转积分默认分润比率")
    @TableField("TRANSFERDIVIDERATIO")
    private BigDecimal transferdivideratio;

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

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

    @ApiModelProperty(value = "修改时间")
    @TableField("MODIFYTIME")
    private Date modifytime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("MODIFIERID")
    private Long modifierid;


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

}
