package com.yeshi.fanli.service.inter.user.integral;
|
|
import java.math.BigDecimal;
|
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<IntegralTaskRecord> getSignDaysRecord(long uid, Long cid);
|
|
/**
|
* 领取金币
|
*
|
* @param uid
|
* @param idList
|
* @throws IntegralTaskRecordException
|
*/
|
public Integer receiveGoldCoin(Long uid, Set<Long> idList) throws IntegralTaskRecordException;
|
|
/**
|
* 返回领取列表
|
*
|
* @param count
|
* @param uid
|
* @param idList
|
* @return
|
*/
|
public List<IntegralTaskRecord> listNotReceivedExcludeId(int count, long uid, Set<Long> idList);
|
|
/**
|
* 领取所有
|
*
|
* @param uid
|
* @return
|
* @throws IntegralTaskRecordException
|
*/
|
public Integer receiveGoldCoinALL(Long uid) throws IntegralTaskRecordException;
|
|
/**
|
* 根据任务ID与日期获取任务完成数
|
*
|
* @param taskId
|
* @param day
|
* @return
|
*/
|
public int countGetCountByTaskIdAndDay(Long taskId, Long uid, Date day);
|
|
/**
|
* 添加获取记录
|
*
|
* @param record
|
*/
|
public IntegralTaskRecord addRecord(IntegralTaskRecord record) throws IntegralTaskRecordException;
|
|
/**
|
* 根据类型与时间检索
|
* @param cid
|
* @param minTime
|
* @param maxTime
|
* @param page
|
* @param count
|
* @return
|
*/
|
public List<IntegralTaskRecord> listByCidAndUidAndCreateTime(Long cid,Long uid, Date minTime, Date maxTime, int page, int count);
|
|
|
|
/**
|
* 根据用户ID与任务ID查询记录
|
* @param uid
|
* @param taskId
|
* @param page
|
* @param count
|
* @return
|
*/
|
public List<IntegralTaskRecord> listByUidAndTaskId(Long uid,Long taskId,int page,int count);
|
/**
|
* 根据类型与时间检索
|
* @param cid
|
* @param minTime
|
* @param maxTime
|
* @return
|
*/
|
public long countByCidAndUidAndCreateTime(Long cid,Long uid, Date minTime, Date maxTime);
|
|
|
/**
|
* 补偿上级 :一级队员首笔返利订单不足0.01元
|
* @param uid
|
* @param beizu
|
*/
|
public void firstRebateOrderRewardBoss(Long uid, Long originUid, String beizu);
|
|
/**
|
* 补偿上上级:二级队员首笔返利订单不足0.01元
|
* @param uid
|
* @param beizu
|
*/
|
public void firstRebateOrderRewardBossSuper(Long uid, Long originUid,String beizu);
|
|
/**
|
* 首笔分享订单不足0.01元补偿
|
* @param uid
|
* @param beizu
|
*/
|
public void firstShareOrderReward(Long uid, String beizu);
|
|
/**
|
* 补偿上级 :首笔分享订单不足0.01元补偿
|
* @param uid
|
* @param beizu
|
*/
|
public void firstSharerOrderRewardBoss(Long uid, Long originUid, String beizu);
|
|
/**
|
* 7天签到记录
|
* @param uid
|
* @param cid
|
* @return
|
*/
|
public List<IntegralTaskRecord> getSign7DaysRecord(long uid, Long cid);
|
|
|
/**
|
* 推广红包折算金币
|
* @param uid
|
* @param addGoldCoin
|
* @param tlj
|
*/
|
public void taoLiJinExchange(Long uid, Integer addGoldCoin, BigDecimal tlj);
|
|
/**
|
* 金币过期
|
*/
|
public void invalidGoldCoin();
|
|
}
|