yujian
2019-10-08 0c78c7aaeaa5a427bc8a5c5faf3cd6bbb589c2da
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
package com.yeshi.fanli.service.inter.count;
 
import java.math.BigDecimal;
import java.util.List;
 
import com.yeshi.fanli.dto.ChartTDO;
import com.yeshi.fanli.vo.user.UserGoldCoinVO;
 
 
 
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<ChartTDO> countNewUserByDate(String channel,Integer type,String years, String startTime, String endTime) throws Exception;
 
    
    
    public List<ChartTDO> 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;
    
    
    /**
     * 统计用户金币情况
     * @param start
     * @param count
     * @return
     */
    public List<UserGoldCoinVO> listByUserGoldCoin(long start, int count, int type);
 
    public long countByUserGoldCoin(int type);
 
    /**
     * 统计剩余金币
     * @param start
     * @param count
     * @return
     */
    public List<UserGoldCoinVO> listByHasGoldCoin(long start, int count);
 
    public long countByHasGoldCoin();
    
}