admin
2025-02-20 fa677dec1c55db004a31beefb1e346e18c7858c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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;
}