yujian
2019-01-14 92c681fabac989d1a9f16fa13202d7f5ccac52d9
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
package com.yeshi.fanli.service.inter.count;
 
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;
 
 
public interface HongBaoV2CountService {
    
    /**
     * 统计历史总到账金额
     * @param uid 
     * @param state 
     * @return
     */
    public BigDecimal countMoneyByUidAndState(Long uid, Integer state);
    
    /**
     * 统计历史红包数量
     * @param uid 
     * @param state 
     * @return
     */
    public Integer countNumberByUidAndState(Long uid, Integer state);
    
    /**
     * 统计总金额
     * @param channel 渠道
     * @param dateType 日期格式  日-1 月-2 年-3
     * @param state  状态
     * @param years  年份
     * @param startTime  开始时间
     * @param endTime      结束时间
     * @return
     */
    public List<Map<String, Object>> countHongBaoMoney(String channel, Integer dateType, Integer state, String year, 
            String startTime, String endTime) throws Exception;
    
    /**
     * 统计总金额
     * @param channel 渠道
     * @param dateType 日期格式  日-1 月-2 年-3
     * @param state  状态
     * @param years  年份
     * @param startTime  开始时间
     * @param endTime      结束时间
     * @return
     */
    public List<Map<String, Object>> countHongBaoNum(String channel, Integer dateType, Integer state, String year, 
            String startTime, String endTime) throws Exception;
 
    /**
     * 分类型订单数与比例
     * @param dateType
     * @param type
     * @param year
     * @param startTime
     * @param endTime
     * @return
     * @throws Exception
     */
    public List<Map<String, Object>> getProportionByType(Integer dateType, Integer type, String year, String startTime,
            String endTime) throws Exception;
 
    /**
     * 统计提成订单数量
     * @param uid
     * @return
     */
    public int getTotalTiChengCount(Long uid);
 
    
    /**
     * 统计未失效订单数量
     * @param uid
     * @param dateType
     * @return
     */
    public long countValidNumberByUid(Long uid, Integer dateType);
    
    
    /**
     * 统计未到账金额
     * @param uid
     * @param dateType
     * @return
     */
    public BigDecimal countWillGetMoneyByUid(Long uid);
 
    /**
     * 最后一次下单时间
     * @param uid
     * @return
     */
    public Date getLastHongBaoTime(Long uid);
    
}