package com.zteits.business.mapper; import com.zteits.business.domain.TdCBusinessCoupon; import com.zteits.business.domain.TdCBusinessCouponExample; import java.util.Date; import java.util.List; import org.apache.ibatis.annotations.Param; public interface TdCBusinessCouponMapper { long countByExample(TdCBusinessCouponExample example); int deleteByExample(TdCBusinessCouponExample example); int deleteByPrimaryKey(Long id); int insert(TdCBusinessCoupon record); int insertSelective(TdCBusinessCoupon record); List selectByExample(TdCBusinessCouponExample example); TdCBusinessCoupon selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") TdCBusinessCoupon record, @Param("example") TdCBusinessCouponExample example); int updateByExample(@Param("record") TdCBusinessCoupon record, @Param("example") TdCBusinessCouponExample example); int updateByPrimaryKeySelective(TdCBusinessCoupon record); int updateByPrimaryKey(TdCBusinessCoupon record); TdCBusinessCoupon selectOneBusinessCouponByRelNo(@Param("cardRelParkNo") String cardRelParkNo); /** * 根据cardRelParkNo,查询本月已经购买的优惠券的数量 * @param cardRelParkNo * @return */ int selectBusinessCouponBuyNumByCardRelParkNo(@Param("cardRelParkNo") String cardRelParkNo, @Param("startDate") Date startDate, @Param("endDate") Date endDate); }