zyy
2025-11-26 c76d21afb6853938a8f743a9fbaad9b5855d19c6
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
package com.yami.trading.service;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.trading.bean.model.User;
import com.yami.trading.bean.model.Withdraw;
import com.yami.trading.bean.vo.WithdrawFeeVo;
 
import java.util.List;
import java.util.Map;
 
public interface WithdrawService extends IService<Withdraw> {
    /**
     * 申请提现
     *
     * @param withdraw
     * @param user
     */
    void applyWithdraw(Withdraw withdraw, User user);
 
 
    /**
     * 获取其他通道的手续费
     *
     * @param volume 提现数量
     * @return
     */
    public double getOtherChannelWithdrawFee(double volume);
 
 
    /**
     * 查找订单 order_no 订单号
     *
     * @return
     */
    public Withdraw findByOrderNo(String order_no);
 
    /**
     * 获取手续费
     *
     * @param channel
     * @param amount
     * @return
     */
    WithdrawFeeVo getFee(String channel, double amount);
 
    Page listRecord(Page page, String status, String roleName,
                    String userName, String orderNo, List<String> userIds);
 
    /***
     * 审核通过
     * @param id
     */
    void examineOk(String id, String userName);
 
    /**
     * 驳回
     *
     * @param id
     * @param content
     * @param adminUserName
     */
    void reject(String id, String content, String adminUserName);
 
    /**
     * 修改用户提现订单收款地址
     * @param id
     * @param userName
     * @param adminuserId
     * @param newAddress
     */
    public void updateAddress(String id,  String userName, Long adminuserId, String newAddress);
 
    long waitCount(List<String> userIds);
 
 
    /**
     * 代付,通过web申请一个代付订单
     */
    public void saveApply(Withdraw entity, String channel, String method_id,String language);
 
    void remarks(String id, String remarks);
 
    /**
     * 根据币种返回,提现该币种的提现最大和最小额度
     * @param symbol 币种(当币种为空,返回默认的提现额度)
     * @param needDefault 当未配置该币种的额度时候,是否返回默认的提现额度配置
     * @return 额度
     */
    Map<String, String> getWithdrawLimitBySymbol(String symbol, boolean needDefault);
}