package com.yeshi.fanli.dao.mybatis.user;
|
|
import java.util.List;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import com.yeshi.fanli.dao.BaseMapper;
|
import com.yeshi.fanli.entity.bus.user.UserSystemCouponGiveRecord;
|
|
public interface UserSystemCouponGiveRecordMapper extends BaseMapper<UserSystemCouponGiveRecord> {
|
|
|
/**
|
* 赠送记录
|
* @param uid 赠送人id
|
* @param couponId 券id
|
* @return
|
*/
|
UserSystemCouponGiveRecord getRecordByUidAndCouponId(@Param("uid") Long uid, @Param("couponId") Long couponId);
|
|
|
/**
|
* 赠送超时未领取的
|
* @param count
|
* @return
|
*/
|
List<UserSystemCouponGiveRecord> overdueList(@Param("count") int count);
|
|
|
/**
|
* 赠送超时未领取的
|
* @param count
|
* @return
|
*/
|
List<UserSystemCouponGiveRecord> overdueListByUser(@Param("uid") Long uid);
|
|
|
|
/**
|
* 领取的id
|
* @param count
|
* @return
|
*/
|
UserSystemCouponGiveRecord getByReceiveId(@Param("receiveId") Long receiveId);
|
|
}
|