admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
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
package com.yeshi.fanli.service.inter.order.dividents;
 
import java.math.BigDecimal;
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 TeamDividentsSourceOrder addTeamDividentsSourceOrder(TeamDividentsSourceOrder order)
            throws TeamDividentsSourceOrderException, ParamsException;
 
    /**
     * 根据主键查询
     * @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);
    
    
    /**
     * 根据订单号查询
     * @Title: listByOrderNoSourceType
     * @Description: 
     * @param orderNo
     * @return 
     * List<TeamDividentsSourceOrder> 返回类型
     * @throws
     */
    public List<TeamDividentsSourceOrder> listByOrderNoOrUid(String orderNo,Long uid);
 
    /**
     * 订单结算
     * @Title: orderSettle
     * @Description: 
     * @param orderNo
     * @param sourceType
     * @param income 
     * void 返回类型
     * @throws
     */
    public void orderSettle(String orderNo, int sourceType,Date preSendTime, BigDecimal income);
 
    /**
     * 更新资金
     * @Title: updateMoney
     * @Description: 
     * @param orderNo
     * @param sourceType
     * @param money 
     * void 返回类型
     * @throws
     */
    public void updateMoney(String orderNo, int sourceType, BigDecimal money);
 
}