yujian
2019-08-20 7920b3cf2a3bdbe858617dd86b237c0faf12b5d6
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
package com.yeshi.fanli.service.inter.user;
 
import java.util.List;
 
import com.yeshi.fanli.entity.bus.user.UserSystemCouponRecord;
 
public interface UserSystemCouponRecordService {
 
    public int insertSelective(UserSystemCouponRecord record);
 
    public UserSystemCouponRecord selectByPrimaryKey(Long id);
 
    public int updateByPrimaryKeySelective(UserSystemCouponRecord record);
 
    public int updateByPrimaryKey(UserSystemCouponRecord record);
 
    public UserSystemCouponRecord getRecordByOrderNo(String orderNo, Integer state);
 
    public List<UserSystemCouponRecord> getRecordByOrderNoList(Integer source, List<String> list);
 
    /**
     * 查询正在使用中 超过时间仍未匹配到订单记录
     * 
     * @param uid
     * @param seconds
     * @return
     */
    public List<UserSystemCouponRecord> getCouponByUsingTimeOut(Long uid, Long seconds);
 
    /**
     * 查询状态
     * 
     * @param uid
     * @param state
     * @return
     */
    public List<UserSystemCouponRecord> getRecordByState(Long uid, Integer state);
 
    /**
     * 订单号是否成功免单
     * 
     * @param orderId
     * @return
     */
    public boolean isSuccessMianDan(Integer source, String orderId);
 
    
    /**
     * 查询最近记录
     * @param userCouponId
     * @return
     */
    public UserSystemCouponRecord getNearByUserCouponId(Long userCouponId);
 
}