zxl
5 天以前 8063ee7eee51bfe25a09428e6efc60f828b270c6
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
package cn.lili.modules.wallet.service;
 
import cn.lili.common.vo.PageVO;
import cn.lili.modules.order.trade.entity.vo.RechargeQueryVO;
import cn.lili.modules.wallet.entity.dos.Recharge;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
 
/**
 * 预存款充值业务层
 *
 * @author pikachu
 * @since 2020-02-25 14:10:16
 */
public interface RechargeService extends IService<Recharge> {
 
    /**
     * 创建充值订单
     *
     * @param price 价格
     * @return 预存款充值记录
     */
    Recharge recharge(Double price);
 
    /**
     * 查询充值订单列表
     *
     * @param page            分页数据
     * @param rechargeQueryVO 查询条件
     * @return
     */
    IPage<Recharge> rechargePage(PageVO page, RechargeQueryVO rechargeQueryVO);
 
 
    /**
     * 支付成功
     *
     * @param sn            充值订单编号
     * @param receivableNo  流水no
     * @param paymentMethod 支付方式
     */
    void paySuccess(String sn, String receivableNo, String paymentMethod);
 
    /**
     * 根据充值订单号查询充值信息
     *
     * @param sn 充值订单号
     * @return
     */
    Recharge getRecharge(String sn);
 
    /**
     * 充值订单取消
     *
     * @param sn 充值订单sn
     */
    void rechargeOrderCancel(String sn);
 
}