yujian
2019-01-08 85b08b045c79180a81abd43be0ac7fd2ae50cd46
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
package com.yeshi.fanli.dao.mybatis.user;
 
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.entity.bus.user.UserActiveLog;
 
public interface UserActiveLogMapper {
 
    int deleteByPrimaryKey(Long id);
 
    int insert(UserActiveLog record);
 
    int insertSelective(UserActiveLog record);
 
    UserActiveLog selectByPrimaryKey(Long id);
    
    UserActiveLog selectLatestByUid(Long uid);
 
    int updateByPrimaryKeySelective(UserActiveLog record);
 
    int updateByPrimaryKey(UserActiveLog record);
    
    /**
     * 根据渠道   统计当日新增用户数量
     * @param channel
     * @return
     */
    List<Map<String, Object>> countSameDayByChannel(@Param("channel")String channel,
            @Param("type")Integer type, @Param("years") String years, 
            @Param("startTime")String startTime, @Param("endTime")String endTime);
    
    /**
     * 根据渠道   统计当日新增用户有购买行为的数量
     * @param channel
     * @return
     */
    List<Map<String, Object>> countSameDayAndBuyGoodsByChannel(@Param("channel")String channel,
            @Param("type")Integer type, @Param("years") String years, 
            @Param("startTime")String startTime, @Param("endTime")String endTime);
    
    /**
     * 统计
     * @param channel
     * @return
     */
    Map<String, BigDecimal> countOneWeekUserInfo(@Param("channel")String channel,
            @Param("startTime")String startTime, @Param("endTime")String endTime,
            @Param("orderNumber")Integer orderNumber);
}