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-08-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SUBDIVIDECONFIG")
@ApiModel(value="Subdivideconfig对象", description="二级分润配置表")
public class Subdivideconfig extends Model<Subdivideconfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "子机构分组ID")
    private Long subareagroupid;

    @ApiModelProperty(value = "分润费用类型 - 1:交易手续费-投资者会员部分(101,102, 201, 202) 6:交割手续费-投资者会员部分(205,206)")
    @TableField("DIVIDEFEETYPE")
    private Integer dividefeetype;

    @ApiModelProperty(value = "市场ID 交易手续费:市场ID；交收手续费：0；出入金手续费：渠道ID")
    @TableField("MARKETID")
    private Long marketid;

    @ApiModelProperty(value = "商品ID - 0表示到市场")
    @TableField("GOODSID")
    private Long goodsid;

    @ApiModelProperty(value = "分配算法 -  1:比率  2:固定(暂不支持)")
    @TableField("DIVIDETYPE")
    private Integer dividetype;

    @ApiModelProperty(value = "分润方式(比率分时使用) - 1:统一分 2:逐级分")
    @TableField("DIVIDEMODE")
    private Integer dividemode;

    @ApiModelProperty(value = "分润值")
    @TableField("DIVIDEVALUE")
    private BigDecimal dividevalue;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATORID")
    private Long creatorid;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATETIME")
    private Date createtime;


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

}
