yujian
2019-01-15 3120a71838e7cc4e04ea482f3d315e80529117de
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
package com.yeshi.fanli.service.inter.count;
 
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
 
 
 
public interface UserInfoCountService {
    
 
    /**
     * 统计用户个数
     * @param isToday  统计今日
     * @param isMonth  统计当月  二则不可同时存在
     * @return
     */
    public long countNewUser(Integer isToday, Integer isMonth);
 
    /**
     * 根据等级统计用户数量
     * @param rank
     * @return
     */
    public long countRank(Integer rank);
 
    /**
     * 统计所有用户总金额  或  可提现金额
     * @param minMoney
     * @return
     */
    public BigDecimal countAllMoney(Double minMoney);
 
    /**
     * 统计流失用户数量:( num 天未使用登录并且无任何资金流动的账号数量)
     * @param num 180
     * @return
     */
    public long countLoseUser(int daysNum);
    
    /**
     * 累计有购买用户数
     * @return
     */
    public long countHasOrderUser();
 
 
    /**
     * 统计新增用户
     * @return
     */
    public List<Map<String, Object>> countNewUserByDate(String channel,Integer type,String years, String startTime, String endTime) throws Exception;
 
    
    
    public List<Map<String, Object>> getTodayBuyRate(String channel, Integer type, String years, String startTime,
            String endTime) throws Exception;
 
    
    public List<Object>  getWeekBuyRate(String channel, String startTime, String endTime,
            Integer orderNum, List<String> dateList) throws Exception;
}