yujian
2019-11-04 148af6b2f57be264c84d0991237fbd7ddea491a4
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
package com.yeshi.fanli.dao.mybatis.redpack;
 
import java.util.List;
 
import org.apache.ibatis.annotations.Param;
 
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.redpack.RedPackWinInvite;
 
public interface RedPackWinInviteMapper extends BaseMapper<RedPackWinInvite> {
 
    /**
     * 统计用户类型的数量
     * @param uid
     * @param type
     * @return
     */
    long countByUidAndType(@Param("uid")Long uid, @Param("type")String type); 
    
    
    /**
     * 统计用户、下级、类型的数量
     * @param uid
     * @param type
     * @return
     */
    long countByUidAndTeamUidAndType(@Param("uid")Long uid,@Param("teamUid")Long teamUid, @Param("type")String type); 
    
    
    /**
     * 查询用户记录
     * @param start
     * @param count
     * @return
     */
    List<RedPackWinInvite> getRewardList(@Param("start")int start, @Param("count")int count, @Param("uid")Long uid); 
    
    
    Long countRewardRecord(@Param("uid")Long uid); 
}