package com.yeshi.fanli.service.inter.hongbao;
|
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.bus.user.ThreeSale;
|
import com.yeshi.fanli.entity.bus.user.UserInfo;
|
|
public interface ThreeSaleSerivce {
|
|
/**
|
* 获取该用户上级用户
|
*
|
* @param uid
|
* 用户ID
|
* @return
|
*/
|
UserInfo getBoss(long uid);
|
|
int findInviteCount(long id);
|
|
void bind(UserInfo invitee, UserInfo inviter);
|
|
void effective(UserInfo find);
|
|
void validateTwentyFour();
|
|
/**
|
* 重新计算用户的等级
|
*
|
* @param uid
|
*/
|
void reComputeUserRank(Long uid);
|
|
void validate365();
|
|
// 获取下级用户
|
List<UserInfo> getFirstUsers(Long uid, int page);
|
|
// 获取一级用户数量
|
long getFirstUsersCount(Long uid);
|
|
// 获取下2级用户
|
List<UserInfo> getSecondUsers(Long uid, int page);
|
|
// 获取二级用户数量
|
long getSecondUsersCount(Long uid);
|
|
// 获取最近有效的分销列表
|
List<ThreeSale> getLastestThreeSaleList(int i, String key);
|
|
//邀请关系
|
int getLastestThreeSaleCount(String key);
|
|
|
/**
|
* 查询一度队员集合
|
* @param start
|
* @param count
|
* @param key
|
* @param uid
|
* @return
|
*/
|
public List<ThreeSale> queryMyFirstTeamList(int start, int count, String key, Long bossId);
|
|
public long queryCountMyFirstTeamList(String key, Long bossId);
|
|
/**
|
* 查询二度队员集合
|
* @param start
|
* @param count
|
* @param key
|
* @param uid
|
* @return
|
*/
|
public List<ThreeSale> queryMySecondTeamList(int start, int count, String key, Long bossId);
|
|
public long queryCountMySecondTeamList(String key, Long bossId);
|
|
/**
|
* 删除邀请关系id
|
* @param id
|
* @return
|
*/
|
public int deleteByPrimaryKey(Long id);
|
|
|
|
/**
|
* 长时间未邀请成功用户
|
* @param daysNum
|
* @return
|
*/
|
public List<Long> queryLongTimeFailed(int daysNum);
|
|
|
/**
|
* 长时间 邀请成功用户
|
* @param daysNum
|
* @return
|
*/
|
public List<ThreeSale> queryLongTimeSuccess(int daysNum);
|
|
|
/**
|
* 设置对应邀请过期
|
* @param list
|
* @return
|
*/
|
public int updateExpire(List<Long> list);
|
|
}
|