Administrator
2025-04-23 595b7935a30e84fba1bc3561d05f9d19d3e32e1f
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.service.agent;
 
import com.taoke.autopay.entity.OrderChannelEnum;
import com.taoke.autopay.entity.agent.ChannelAgentSharingRatio;
 
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
 
/**
 * @author hxh
 * @title: ChannelAgentSharingRatioService
 * @description: TODO
 * @date 2024/7/26 0:38
 */
public interface ChannelAgentSharingRatioService {
 
    /**
     * @author hxh 
     * @description 设置比例
     * @date 0:40 2024/7/26
     * @param: shareRatio
     * @return void
     **/
    public void setShareRatio(ChannelAgentSharingRatio shareRatio);
 
    /**
     * @author hxh 
     * @description 获取分成比例
     * @date 0:41 2024/7/26
     * @param: agengId
     * @param: orderChannel
     * @return com.taoke.autopay.entity.agent.ChannelAgentSharingRatio
     **/
    public ChannelAgentSharingRatio getShareRatio(Long agengId, OrderChannelEnum orderChannel);
 
 
    public List<ChannelAgentSharingRatio> getShareRatios(Long agengId);
 
 
    /**
     * 获取默认的渠道分成比例
     * @return
     */
    public Map<OrderChannelEnum,BigDecimal> getDefaultShareRatio();
 
 
    /**
     * 获取每一单的金额
     * @param agengId
     * @return
     */
    public Map<OrderChannelEnum,BigDecimal> getShareMoneyMap(Long agengId);
 
    /**
     * 设置默认的分成比例
     * @param defaultShareRatio
     */
    public void setDefaultShareRatio(Map<OrderChannelEnum,BigDecimal> defaultShareRatio);
 
}