admin
2019-08-21 f1a2d46aaa612253afba7b1d61ad04a2f0ef7eed
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
package com.yeshi.fanli.dao.mybatis.integral;
 
import java.util.Date;
import java.util.List;
import java.util.Set;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.integral.IntegralTaskRecord;
 
public interface IntegralTaskRecordMapper extends BaseMapper<IntegralTaskRecord> {
 
    /**
     * 未领取金币
     * 
     * @param count
     * @param uid
     * @return
     */
    List<IntegralTaskRecord> listNotReceived(@Param("count") int count, @Param("uid") Long uid);
 
    /**
     * 未领取金币- 排除id
     * 
     * @param count
     * @param uid
     * @return
     */
    List<IntegralTaskRecord> listNotReceivedExcludeId(@Param("count") int count, @Param("uid") Long uid,
            @Param("list") Set<Long> idList);
 
    /**
     * 总完成
     * 
     * @param uid
     * @param dateType
     * @return
     */
    Integer getTotalGoldCoin(@Param("uid") Long uid, @Param("cid") Long cid, @Param("dateType") Integer dateType);
 
    /**
     * 统计完成数量
     * 
     * @param uid
     * @param cid
     * @param dateType
     * @return
     */
    Integer countFinished(@Param("uid") Long uid, @Param("cid") Long cid, @Param("dateType") Integer dateType);
 
    /**
     * 近7天签到情况
     * 
     * @param uid
     * @param cid
     * @param sortState
     *            1倒序-创建时间
     * @return
     */
    List<IntegralTaskRecord> listDaySignRecord(@Param("uid") Long uid, @Param("cid") Long cid);
 
    /**
     * 未领取金币
     * 
     * @param count
     * @param uid
     * @return
     */
    int countTotalGoldCoin(@Param("uid") Long uid);
 
    /**
     * 更新领取状态
     * 
     * @param uid
     */
    void updateReceived(@Param("uid") Long uid);
 
    /**
     * 根据任务ID与时间段查询任务完成数量
     * 
     * @param taskId
     * @param uid
     * @param minTime
     * @param maxTime
     */
    int countGetCountByTaskIdAndDay(@Param("taskId") Long taskId,@Param("uid")Long uid, @Param("minTime") Date minTime,
            @Param("maxTime") Date maxTime);
}