package com.ifish.dao;

import com.ifish.entity.CouponRecord;

/**
 * 优惠券兑换记录
 * @author Administrator
 *
 */
public interface CouponRecordDao extends BaseDao<CouponRecord, Integer> {

	/**
	 * 查询兑换券的兑换数量
	 * @param couponId
	 * @return
	 */
	int getCouponRecordCountByCouponId(Integer couponId);
	
	/**
	 * 查询用户的兑换数量
	 * @param couponId
	 * @return
	 */
	int getCouponRecordCountByUser(Integer userId,Integer couponId);
	
}
