package com.yeshi.fanli.dao.mybatis.integral;
|
|
import java.util.List;
|
import java.util.Set;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import com.yeshi.fanli.dao.BaseMapper;
|
import com.yeshi.fanli.entity.integral.IntegralTaskRecord;
|
|
public interface IntegralTaskRecordMapper extends BaseMapper<IntegralTaskRecord> {
|
|
/**
|
* 未领取金币
|
* @param count
|
* @param uid
|
* @return
|
*/
|
List<IntegralTaskRecord> listNotReceived(@Param("count") int count, @Param("uid") Long uid);
|
|
|
/**
|
* 未领取金币- 排除id
|
* @param count
|
* @param uid
|
* @return
|
*/
|
List<IntegralTaskRecord> listNotReceivedExcludeId(@Param("count") int count, @Param("uid") Long uid,
|
@Param("list")Set<Long> idList);
|
|
|
/**
|
* 总完成
|
* @param uid
|
* @param dateType
|
* @return
|
*/
|
Integer getTotalGoldCoin(@Param("uid") Long uid, @Param("cid") Long cid, @Param("dateType")Integer dateType);
|
|
/**
|
* 统计完成数量
|
* @param uid
|
* @param cid
|
* @param dateType
|
* @return
|
*/
|
Integer countFinished(@Param("uid") Long uid, @Param("cid") Long cid, @Param("dateType")Integer dateType);
|
|
/**
|
* 近7天签到情况
|
* @param uid
|
* @param cid
|
* @param sortState 1倒序-创建时间
|
* @return
|
*/
|
List<IntegralTaskRecord> listDaySignRecord(@Param("uid") Long uid, @Param("cid") Long cid);
|
|
|
/**
|
* 未领取金币
|
* @param count
|
* @param uid
|
* @return
|
*/
|
int countTotalGoldCoin(@Param("uid") Long uid);
|
|
/**
|
* 更新领取状态
|
* @param uid
|
*/
|
void updateReceived(@Param("uid") Long uid);
|
|
}
|
|