admin
2020-04-13 dd5b15229cb15459fa7c31ccea77dac28cbfafbd
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
package com.yeshi.fanli.service.inter.order.dividents;
 
import java.util.Date;
import java.util.List;
 
import com.yeshi.fanli.entity.order.dividents.TeamDividentsSourceOrder;
import com.yeshi.fanli.exception.ParamsException;
import com.yeshi.fanli.exception.order.dividents.TeamDividentsSourceOrderException;
 
public interface TeamDividentsSourceOrderService {
 
    /**
     * 添加团队分红来源订单
     * @Title: addTeamDividentsSourceOrder
     * @Description: 
     * @param order 
     * void 返回类型
     * @throws
     */
    public void addTeamDividentsSourceOrder(TeamDividentsSourceOrder order) throws TeamDividentsSourceOrderException,ParamsException;
 
    /**
     * 
     * @Title: listCanSendByUidAndPreSendTime
     * @Description: 
     * @param uid
     * @param preSendTime
     * @return 
     * List<TeamDividentsSourceOrder> 返回类型
     * @throws
     */
    public List<TeamDividentsSourceOrder> listCanSendByUidAndPreSendTime(Long uid, Date preSendTime, int page,
            int pageSize);
 
    /**
     * 
     * @Title: countCanSendByUidAndPreSendTime
     * @Description: 
     * @param uid
     * @param preSendTime
     * @return 
     * long 返回类型
     * @throws
     */
    public long countCanSendByUidAndPreSendTime(Long uid, Date preSendTime);
 
    /**
     * 获取能够分红的订单源用户ID列表
     * @Title: listCanSendUidByPreSendTime
     * @Description: 
     * @param preSendTime
     * @param page
     * @param count
     * @return 
     * List<Long> 返回类型
     * @throws
     */
    public List<Long> listCanSendUidByPreSendTime(Date preSendTime, int page, int count);
 
    /**
     * 获取能够分红的订单源用户ID数量
     * @Title: countCanSendUidByPreSendTime
     * @Description: 
     * @param preSendTime
     * @return 
     * Long 返回类型
     * @throws
     */
    public Long countCanSendUidByPreSendTime(Date preSendTime);
 
    /**
     * 根据主键查询
     * @Title: selectByPrimaryKeyForUpdate
     * @Description: 
     * @param id
     * @return 
     * TeamDividentsSourceOrder 返回类型
     * @throws
     */
    public TeamDividentsSourceOrder selectByPrimaryKeyForUpdate(Long id);
 
    /**
     * 使订单失效
     * @Title: invalidOrder
     * @Description: 
     * @param orderNo
     * @param sourceType
     * @param beiZhu
     * void 返回类型
     * @throws
     */
    public void invalidOrder(String orderNo, int sourceType, String beiZhu);
 
    /**
     * 根据uid失效
     * @Title: invalidOrderByUid
     * @Description: 
     * @param uid
     * @param beiZhu 
     * void 返回类型
     * @throws
     */
    public void invalidOrderByUid(Long uid, String beiZhu);
 
    /**
     * 发送
     * @Title: send
     * @Description: 
     * @param id 
     * void 返回类型
     * @throws
     */
    public void send(Long id);
    
    
    /**
     * 根据订单查询
     * @Title: selectByOrderNoSourceType
     * @Description: 
     * @param orderNo
     * @param sourceType
     * @return 
     * TeamDividentsSourceOrder 返回类型
     * @throws
     */
    public TeamDividentsSourceOrder selectByOrderNoSourceType(String orderNo,int sourceType);
 
}