yujian
2019-08-27 d8359ddb48dab5cc797a9d552e11fde571f4920c
fanli/src/main/java/com/yeshi/fanli/service/inter/integral/IntegralTaskRecordService.java
@@ -9,9 +9,9 @@
public interface IntegralTaskRecordService {
   /**
    * 待领取金币
    *
    * @param count
    * @param uid
    * @return
@@ -20,6 +20,7 @@
   /**
    * 已领取金币
    *
    * @param uid
    * @param dateType
    * @return
@@ -28,6 +29,7 @@
   /**
    * 完成任务数量
    *
    * @param uid
    * @param cid
    * @param dateType
@@ -37,15 +39,16 @@
   /**
    * 今日是已签到
    *
    * @param uid
    * @param cid
    * @return
    */
   public boolean isToDaySign(long uid, Long cid);
   /**
    * 计算今日签到的天数
    *
    * @param uid
    * @param cid
    * @return
@@ -54,6 +57,7 @@
   /**
    * 完成任务记录
    *
    * @param uid
    * @param cid
    * @param taskId
@@ -63,19 +67,75 @@
   /**
    * 获取已连续签到次数
    *
    * @param uid
    * @param cid
    * @return
    */
   public List<Date> getSignDays(long uid, Long cid);
   public List<IntegralTaskRecord> getSignDaysRecord(long uid, Long cid);
   /**
    * 领取金币
    *
    * @param uid
    * @param idList
    * @throws IntegralTaskRecordException
    * @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);
   /**
    * 根据类型与时间检索
    * @param cid
    * @param minTime
    * @param maxTime
    * @return
    */
   public long countByCidAndUidAndCreateTime(Long cid,Long uid, Date minTime, Date maxTime);
}