admin
2022-04-29 6cc97918a5a42e37a3c3867cc5b78a0b9fd43a24
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
package com.yeshi.makemoney.app.service.inter.goldcorn;
 
import com.yeshi.makemoney.app.entity.goldcorn.GoldCornGetRecord;
import com.yeshi.makemoney.app.entity.goldcorn.GoldCornGetType;
import com.yeshi.makemoney.app.exception.goldcorn.GoldCornGetRecordException;
import com.yeshi.makemoney.app.service.query.goldcorn.GoldCornGetRecordQuery;
 
import java.util.Date;
import java.util.List;
import java.util.Map;
 
 
public interface GoldCornGetRecordService {
 
    /**
     * 获取列表
     *
     * @param goldCornGetRecordQuery
     * @param page
     * @param pageSize
     * @return
     */
    public List<GoldCornGetRecord> list(GoldCornGetRecordQuery goldCornGetRecordQuery, int page, int pageSize);
 
    /**
     *
     */
    public long count(GoldCornGetRecordQuery goldCornGetRecordQuery);
 
 
    /**
     *
     */
    public GoldCornGetRecord get(String id);
 
    /**
     *
     */
    public void add(GoldCornGetRecord goldCornGetRecord) throws GoldCornGetRecordException;
 
    /**
     *
     */
    public void update(GoldCornGetRecord goldCornGetRecord);
 
 
    public Long getGoldCornByDay(Long uid, Date day);
 
 
    /**
     * @return java.util.List<java.lang.Long>
     * @author hxh
     * @description 根据日期获取用户ID集合
     * @date 11:18 2022/4/7
     * @param: day
     **/
    public List<Long> getUidsByDay(String day, int page, int pageSize);
 
 
    public long countUidsByDay(String day);
 
 
    /**
     * @return java.util.Map<java.lang.Long       ,       java.math.BigDecimal>
     * @author hxh
     * @description 统计FromUid产生的金币数量
     * @date 15:36 2022/4/8
     * @param: uid
     * @param: fromUidList
     * @param: day
     **/
    public Map<Long, Integer> sumGoldCornByFromUids(Long uid, List<Long> fromUidList, String day);
 
 
    /**
     * @return int
     * @author hxh
     * @description 获取连续任务的天数
     * @date 16:39 2022/4/21
     * @param: uid
     * @param: type
     * @param: deadDate
     **/
    public int getContinueDay(Long uid, GoldCornGetType type, Date deadDate);
 
 
    /**
     * @return long
     * @author hxh
     * @description 统计事件数量
     * @date 10:32 2022/4/28
     * @param: goldCornGetRecordQuery
     **/
    public Map<GoldCornGetType,Long>  sumEventCount(GoldCornGetRecordQuery goldCornGetRecordQuery);
 
}