| | |
| | | package com.yeshi.fanli.dao.mybatis.redpack; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | |
| | | * @return |
| | | */ |
| | | long countByUidAndType(@Param("uid")Long uid, @Param("type")String type); |
| | | |
| | | |
| | | /** |
| | | * 统计用户、下级、类型的数量 |
| | | * @param uid |
| | | * @param type |
| | | * @return |
| | | */ |
| | | int countByUidAndTeamUidAndType(@Param("uid")Long uid,@Param("teamUid")Long teamUid, @Param("type")String type); |
| | | |
| | | /** |
| | | * 统计用户、下级、类型的数量 |
| | | * @param uid |
| | | * @param type |
| | | * @return |
| | | */ |
| | | RedPackWinInvite getByUidAndTeamUidAndType(@Param("uid")Long uid,@Param("teamUid")Long teamUid, @Param("type")String type); |
| | | |
| | | |
| | | /** |
| | | * 统计用户、下级、类型的数量 |
| | | * @param uid |
| | | * @param type |
| | | * @return |
| | | */ |
| | | RedPackWinInvite getByUidAndTeamUidAndTypeMonth(@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); |
| | | |
| | | |
| | | /** |
| | | * 统计领取总金额 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | BigDecimal getRewardMoney(@Param("uid")Long uid); |
| | | |
| | | |
| | | /** |
| | | * 获取奖励记录 |
| | | * @param uid |
| | | * @param type |
| | | * @return |
| | | */ |
| | | List<RedPackWinInvite> getWinListByBossIdAndTeamUid(@Param("uid")Long uid, @Param("teamUid")Long teamUid); |
| | | |
| | | /** |
| | | * 邀请奖金排行榜 队员 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<RedPackWinInvite> getWinTopListByBossId(@Param("start")int start, @Param("count")int count,@Param("uid")Long uid); |
| | | |
| | | long countWinTopListByBossId(@Param("uid")Long uid); |
| | | |
| | | /** |
| | | * 统计当前队员在活动中第几个好友 |
| | | * @param uid |
| | | * @param teamUid |
| | | * @return |
| | | */ |
| | | long countTeamNumByTid(@Param("uid")Long uid, @Param("teamUid")Long teamUid); |
| | | |
| | | |
| | | /** |
| | | * 获取奖励记录 |
| | | * @param uid |
| | | * @param type |
| | | * @return |
| | | */ |
| | | List<RedPackWinInvite> query(@Param("start")long start, @Param("count")int count, @Param("key")String key, @Param("type")String type); |
| | | |
| | | Long count(@Param("key")String key, @Param("type")String type); |
| | | |
| | | } |