IUnionShareService.java
3.71 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
package com.yoho.unions.server.service;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.yoho.service.model.union.bo.*;
import com.yoho.service.model.union.request.*;
import com.yoho.service.model.union.response.PageResponseBO;
import com.yoho.service.model.union.response.PageUnionShareOrderRspBO;
import com.yoho.service.model.union.response.UnionShareUserApplyListBo;
import com.yoho.service.model.union.response.UnionShareUserBankListBO;
import com.yoho.unions.dal.model.UnionShareOrders;
import com.yoho.unions.dal.model.UnionShareSettlement;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
/**
* 联盟红人推广返利
* Created by mingdan.ge on 2018/5/10.
*/
public interface IUnionShareService {
/**
* 订单插入或更新
*/
void saveOrUpdateOrder(ShareOrderBo bo);
PageUnionShareOrderRspBO queryUnionShareOrders(UnionShareOrderSearchReqBO reqBO);
/**
* 提现结算单状态变更
* */
void updateSettlementStatus(ShareSettlementBo bo);
/**
* 提现
*/
BigDecimal addSettlement(Integer uid);
/**
* 获取用户可提现金额、已提现金额、是否可以提现
* */
ShareUserSettlementInfoBo getUserSettleMentInfo(Integer uid);
/**
* 用户登录时获取对应的渠道号
* @param uid
* @return
*/
UnionShareUserBo queryUnionTypeByUid(int uid);
/**
* 申请
* @param req
* @return
*/
int userApply(UnionShareUserApplyReqBo req);
/**
* 申请状态
* @param uid
* @return
*/
JSONObject checkApply(int uid);
/**
* 重置申请状态
* @param uid
* @return
*/
String resetApply(int uid);
/**
* 查询绑定银行卡
* @param uid
* @return
*/
UnionShareUserBankBo getBankCard(int uid);
/**
* 获取银行列表
* @return
*/
List<UnionShareBankBo> getBankList();
/**
* 获取银行列表
* @return
*/
Map<String,JSONArray> getSocialMediaBasicParams();
/**
* 绑定银行卡
* @param bo
* @return
*/
int bindBankCard(UnionShareUserBankBo bo);
/**
* 校验银行卡信息
* @param bo
* @return
*/
UnionShareUserBankBo checkAndBuildBankCard(UnionShareUserBankBo bo);
/**
* 用户前台获取个人推广近期订单(10个)
* @param uid
* @return
*/
List<UnionShareOrders> queryRecentlyOrderLimitTen(int uid);
/**
* 订单明细
* @param orderCode
* @return
*/
ShareOrderBo queryOrderDetail(Integer uid, String orderCode);
/**
* 提现记录列表
* @param unionShareOrderReqBO
* @return
*/
PageResponseBO<UnionShareSettlement> querySettlementRecord(UnionShareOrderReqBO unionShareOrderReqBO);
/**
* 订单列表
* @param unionShareOrderReqBO
* @return
*/
PageResponseBO<UnionShareOrders> queryOrderList(UnionShareOrderReqBO unionShareOrderReqBO);
/**
* 查询用户绑定银行卡信息
* @param parm
* @return
*/
PageResponseBO<UnionShareUserBankListBO> queryUnionShareUserBanks(UnionShareUserBankListReqBo parm);
/**
* 作废用户绑定的银行卡
* @param req
* @return
*/
int cancelUserBanks(IdOrIdsBo req);
/**
* 拒绝用户申请
* @param req
* @return
*/
int refuseApply(IdOrIdsBo req);
/**
* 通过用户申请
* @param req
* @return
*/
int agreeApply(IdOrIdsBo req);
/**
* 查询申请记录
* @param parm
* @return
*/
PageResponseBO<UnionShareUserApplyListBo> queryUnionShareUserApplys(UnionShareUserApplyListReqBo parm);
}