package com.taoke.autopay.entity.agent;
|
|
import com.taoke.autopay.entity.OrderChannelEnum;
|
import lombok.Builder;
|
import lombok.Data;
|
import lombok.experimental.Tolerate;
|
import org.springframework.data.annotation.Id;
|
import org.yeshi.utils.generater.mybatis.Column;
|
import org.yeshi.utils.generater.mybatis.Table;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
/**
|
* @author hxh
|
* @title: ChannelAgentSharingRatio
|
* @description: 渠道代理分成比例设置
|
* @date 2024/7/20 22:45
|
*/
|
@Data
|
@Builder
|
@Table(value = "table_agent_sharing_ratio")
|
public class ChannelAgentSharingRatio {
|
// 采用金额的分成方式
|
public final static int SHARE_TYPE_MONEY = 0;
|
// 采用比例的分成方式
|
public final static int SHARE_TYPE_RATIO = 1;
|
|
@Tolerate
|
public ChannelAgentSharingRatio(){
|
|
}
|
|
|
@Id
|
@Column(name = "_id")
|
private Long id;
|
/**
|
* 渠道ID
|
**/
|
@Column(name = "_agent_id")
|
private Long agengId;
|
|
/**
|
* 订单渠道
|
**/
|
@Column(name = "_order_channel")
|
private OrderChannelEnum orderChannel;
|
|
@Column(name = "_share_type")
|
private Integer shareType;
|
/**
|
* 分成比例
|
**/
|
@Column(name = "_share_value")
|
private BigDecimal shareValue;
|
@Column(name = "_create_time")
|
private Date createTime;
|
@Column(name = "_update_time")
|
private Date updateTime;
|
}
|