yujian
2019-08-29 e1dcef9d29c8de98c603cd4880f6b272c23f1cc0
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package com.yeshi.fanli.service.inter.user;
 
import java.util.List;
 
import com.yeshi.fanli.entity.bus.user.UserSystemCouponGiveRecord;
 
public interface UserSystemCouponGiveRecordService {
 
    public void insertSelective(UserSystemCouponGiveRecord record);
 
    /**
     * 更新领取记录
     * @param receiveUid
     * @param giveUid
     * @param couponId
     */
    public void updateByPrimaryKeySelective(UserSystemCouponGiveRecord giveRecord);
 
    
    /**
     * 查询赠送记录
     * @param giveUid
     * @param couponId
     * @return
     */
    public UserSystemCouponGiveRecord getRecordByUidAndCouponId(Long giveUid, Long couponId);
 
    
    /**
     * 未领取退回券
     * @param count
     * @return
     */
    public List<UserSystemCouponGiveRecord> overdueList(int count);
 
    
    /**
     * id查询
     * @param id
     * @return
     */
    public UserSystemCouponGiveRecord selectByPrimaryKey(Long id);
 
    /**
     * 赠送需退回
     * @param uid
     * @return
     */
    public List<UserSystemCouponGiveRecord> overdueListByUser(Long uid);
    
    
    /**
     * 领取的id
     * @param count
     * @return
     */
    UserSystemCouponGiveRecord getByReceiveId(Long receiveId);
 
}