TdCBusinessCouponMapper.java
1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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<TdCBusinessCoupon> 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);
}