package com.platform.dao;

import com.platform.entity.UserCouponVo;
import org.apache.ibatis.annotations.Param;

/**
 * @author lipengjun
 * @email 939961241@qq.com
 * @gitee https://gitee.com/fuyang_lipengjun/platform
 * @date 2017-08-11 09:16:47
 */
public interface ApiUserCouponMapper extends BaseDao<UserCouponVo> {
    UserCouponVo queryByCouponNumber(@Param("couponNumber") String couponNumber);

    public UserCouponVo getByUserIdAndCouponId(@Param("userId") Long userId , @Param("couponId") Integer couponId);

    public UserCouponVo getByUserIdAndCouponIdForUpdate(@Param("userId") Long userId , @Param("couponId") Integer couponId);
}
