yujian
2020-06-28 1e28ac69827ff7578a418a79bd95aff2c6637f5c
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
package com.yeshi.fanli.service.inter.redpack;
 
import java.math.BigDecimal;
import java.util.List;
 
import com.yeshi.fanli.entity.redpack.RedPackWinInvite;
import com.yeshi.fanli.vo.redpack.RedPackWinProgressVO;
 
public interface RedPackWinInviteService {
 
    /**
     * 邀请订单到账-相关奖励
     * @param uid
     * @param inviteeUid
     * @param source
     * @param orderNo
     */
    public void inviteOrderArriveReward(Long uid, Integer source, String orderNo) throws Exception;
 
    /**
     * 查询获得记录
     * @param start
     * @param count
     * @param uid
     * @return
     */
    public List<RedPackWinInvite> getRewardList(int start, int count, Long uid);
 
    /**
     * 统计条数
     * @param uid
     * @return
     */
    public Long countRewardRecord(Long uid);
 
    /**
     * 邀请成功奖励
     * @param uid
     * @throws Exception
     */
    public void inviteSucceedReward(Long uid) throws Exception;
 
    /**
     * 统计总领取金额
     * @param uid
     * @return
     */
    public BigDecimal getRewardMoney(Long uid);
 
    
    /**
     * 邀请进度 + 奖励
     * @param uid
     * @return
     */
    public List<RedPackWinProgressVO> getInviteProgressByWorkerId(Long uid, Long tid);
 
 
    /**
     * 奖金排行-队员
     * @param uid
     * @return
     */
    public List<RedPackWinInvite> getWinTopListByBossId(int page, int count, Long uid);
 
    public long countWinTopListByBossId(Long uid);
 
    /**
     * 初始化红包一阶段
     * @param bossId
     * @param teamUid
     */
    public void initCreateRedPackWin(Long bossId, Long teamUid);
 
    /**
     * 第几个活动好友
     * @param uid
     * @param teamUid
     * @return
     */
    public long countTeamNumByTid(Long uid, Long teamUid);
 
    /**
     * 查询邀请红包明细
     * @param page
     * @param count
     * @param key
     * @param status
     * @return
     */
    public List<RedPackWinInvite> query(long page, int count, String key,  String type);
 
    public long count(String key, String type);
 
    
    /**
     * 创建
     * @param orderUid
     * @param orderNo
     * @param source
     */
    public void winRedPackByOrder(Long orderUid, String orderNo, Integer source);
 
    /**
     * 查询上月用户id
     * @param start
     * @param count
     * @return
     */
 
    public List<Long> listWinUid(int start, int count);
    
    /**
     * 查询上月数据
     * @param start
     * @param count
     * @return
     */
 
    long countLastMonthByUid(Long uid);
    
    /**
     * 查询上月数据
     * @param start
     * @param count
     * @return
     */
    List<RedPackWinInvite> listLastMonthByUid(int start, int count, Long uid);
    
}