admin
2021-05-19 a1be6075c6b1365a7abc66bf559d6058039248ab
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
package com.yeshi.fanli.service.inter.order.config;
 
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
 
import com.yeshi.fanli.entity.SystemEnum;
import org.springframework.cache.annotation.CacheEvict;
 
import com.yeshi.fanli.dto.GoodsMoneyConfigParamsDTO;
import com.yeshi.fanli.entity.bus.user.HongBaoManage;
import com.yeshi.fanli.entity.bus.user.vip.UserLevelEnum;
 
public interface HongBaoManageService {
 
    @CacheEvict(value = "homeBaoManage", allEntries = true)
    public void update(List<HongBaoManage> hongBaoManageList);
 
    public String get(String key, SystemEnum system);
 
    public BigDecimal getByKeyAndMaxTime(String key, Long time, SystemEnum system);
    
    public BigDecimal getByKeyAndMaxTimeCache(String key, Long time, SystemEnum system);
 
    public Map<String, String> convertMap( SystemEnum system);
 
    /**
     * 获取返利订单返利比例
     * 
     * @param time
     * @return
     */
    public BigDecimal getFanLiRate(UserLevelEnum level, long time, SystemEnum system);
 
    /**
     * 获取分享订单返利比例
     * 
     * @param time
     * @return
     */
    public BigDecimal getShareRate(UserLevelEnum level, long time, SystemEnum system);
 
    /**
     * 获取返利订单返利比例
     * 
     * @return
     */
    public BigDecimal getFanLiRate(UserLevelEnum level, SystemEnum system);
    
    
    public BigDecimal getFanLiRate(SystemEnum system);
 
    /**
     * 获取分享订单返利比例
     * 
     * @return
     */
    public BigDecimal getShareRate(UserLevelEnum level, SystemEnum system);
    
    public BigDecimal getShareRate(SystemEnum system);
 
    /**
     * 获取第一级的邀请赚比例
     * 
     * @return
     */
    public BigDecimal getFirstInviteRate(int urank, SystemEnum system);
 
    /**
     * 获取第一级的邀请赚比例
     * 
     * @param time
     * @return
     */
    public BigDecimal getFirstInviteRate(int urank, long time, SystemEnum system);
 
    /**
     * 获取第二级的邀请赚比例
     * 
     * @return
     */
    public BigDecimal getSecondInviteRate(int urank, SystemEnum system);
 
    /**
     * 获取第二级的邀请赚比例
     * 
     * @param time
     * @return
     */
    public BigDecimal getSecondInviteRate(int urank, long time, SystemEnum system);
 
    /**
     * 获取第一级的分享赚比例
     * 
     * @return
     */
    public BigDecimal getFirstShareRate(int urank, SystemEnum system);
 
    /**
     * 获取第一级的分享赚比例
     * 
     * @param time
     * @return
     */
    public BigDecimal getFirstShareRate(int urank, long time, SystemEnum system);
 
    /**
     * 获取第二级的分享赚比例
     * 
     * @return
     */
    public BigDecimal getSecondShareRate(int urank, SystemEnum system);
 
    /**
     * 获取第二级的分享赚比例
     * 
     * @param time
     * @return
     */
    public BigDecimal getSecondShareRate(int urank, long time, SystemEnum system);
 
    /**
     * 淘礼金返利比例
     * 
     * @return
     */
    public BigDecimal getTLJFanLiRate(SystemEnum system);
 
    /**
     * 淘礼金分享比例
     * 
     * @return
     */
    public BigDecimal getTLJShareRate(long time, SystemEnum system);
 
    /**
     * 获取邀请一级补贴比例
     * 
     * @param time
     * @return
     */
    public BigDecimal getInviteFirstLevelSubsidyRate(Long time, SystemEnum system);
 
    /**
     * 获取邀请二级补贴比例
     * 
     * @param time
     * @return
     */
    public BigDecimal getInviteSecondLevelSubsidyRate(Long time, SystemEnum system);
    
    /**
     * 获取需要显示计算的比例实体
     * 
     * @param platform
     * @param version
     * @return
     */
    public GoodsMoneyConfigParamsDTO getShowComputeRate(String platform, String version, UserLevelEnum userLevel, SystemEnum system);
    
    
    public GoodsMoneyConfigParamsDTO getShowComputeRate(String platform, String version, SystemEnum system);
 
    /**
     * 获取基础的返利比例
     * 
     * @param time
     * @return
     */
    public BigDecimal getBaseFanliRate(long time, SystemEnum system);
 
    /**
     * 获取基础的返利比例
     * 
     * @return
     */
    public BigDecimal getBaseFanliRate( SystemEnum system);
    
    public BigDecimal getBaseFanliRateCache(long time, SystemEnum system);
 
}