yujian
2019-01-05 4220ceb661146c58d1d6855f14dcdcc3d8c7bb24
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
package com.yeshi.fanli.service.inter.user;
 
import java.util.List;
 
import com.yeshi.fanli.entity.bus.user.UserActiveLog;
 
/**
 * 用户活跃日志服务
 * 
 * @author Administrator
 *
 */
public interface UserActiveLogService {
    /**
     * 用户活跃日志
     * 
     * @param userActiveLog
     */
    public void addUserActiveLog(UserActiveLog userActiveLog);
 
    /**
     * 获取某个用户的最近一次的活跃信息
     * 
     * @param uid
     * @return
     */
    public UserActiveLog getUserLatestActiveInfo(Long uid);
 
    /**
     * 根据渠道   统计当日新增用户数量
     * @param channel
     * @return
     */
    public List<Object> countSameDayByChannel(String channel, Integer type, String years, String startTime, String endTime)
            throws Exception;
    /**
     * 根据渠道   统计当日新增用户有购买行为的数量
     * @param channel
     * @return
     */
    public List<Object> countSameDayAndBuyGoodsByChannel(String channel, Integer type, String years, String startTime,
            String endTime) throws Exception;
 
    /**
     * 当日产生订单的新增用户 与 当日总新增用户比例
     * @param channel
     * @param type
     * @param years
     * @param startTime
     * @param endTime
     * @return
     * @throws Exception
     */
    public List<Object> getBuyProportion(String channel, Integer type, String years, String startTime, String endTime,Integer orderNum)
            throws Exception;
 
    /**
     * 根据渠道   统计当日新增用户有购买行为的订单数量大于3
     * @param channel
     * @param type
     * @param years
     * @param startTime
     * @param endTime
     * @param orderNum
     * @return
     * @throws Exception
     */
    public List<Object> countSameDayAndBuyGoodsByChannelAndBuyNum(String channel, Integer type, String years,
            String startTime, String endTime, Integer orderNum) throws Exception;
 
}