yujian
2019-08-09 41aec48fb1e43f42807b1c71c9aeb19ebbf7506c
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
package com.yeshi.fanli.service.inter.integral;
 
import java.util.Date;
import java.util.List;
import java.util.Set;
 
import com.yeshi.fanli.entity.integral.IntegralTaskRecord;
import com.yeshi.fanli.exception.integral.IntegralTaskRecordException;
 
public interface IntegralTaskRecordService {
 
    
    /**
     * 待领取金币
     * @param count
     * @param uid
     * @return
     */
    public List<IntegralTaskRecord> listNotReceived(int count, long uid);
 
    /**
     * 已领取金币
     * @param uid
     * @param dateType
     * @return
     */
    public Integer getTotalGoldCoin(long uid, Long cid, Integer dateType);
 
    /**
     * 完成任务数量
     * @param uid
     * @param cid
     * @param dateType
     * @return
     */
    public Integer countFinished(long uid, Long cid, Integer dateType);
 
    /**
     * 今日是已签到
     * @param uid
     * @param cid
     * @return
     */
    public boolean isToDaySign(long uid, Long cid);
 
 
    /**
     * 计算今日签到的天数
     * @param uid
     * @param cid
     * @return
     */
    public Integer getNowdaySignNum(long uid, Long cid);
 
    /**
     * 完成任务记录
     * @param uid
     * @param cid
     * @param taskId
     * @param goldCoin
     */
    public void finishedTask(long uid, long cid, long taskId, int goldCoin);
 
    /**
     * 获取已连续签到次数
     * @param uid
     * @param cid
     * @return
     */
    public List<Date> getSignDays(long uid, Long cid);
 
    
    /**
     * 领取金币
     * @param uid
     * @param idList
     * @throws IntegralTaskRecordException 
     */
    public Integer receiveGoldCoin(Long uid, Set<Long> idList) throws IntegralTaskRecordException;
 
}