xuhy
2024-05-28 5470d21a35286abe41fafc25a7deaabefd7c55da
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
package com.stylefeng.guns.modular.system.service;
 
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.modular.system.model.PaymentRecord;
 
public interface IPaymentRecordService extends IService<PaymentRecord> {
 
 
    /**
     * 添加数据
     * @param orderId       订单id
     * @param orderType     订单类型
     * @param payType       支付方式(1=微信,2=支付宝)
     * @param amount        支付金额
     * @param code          第三方支付单号
     * @param state         支付状态(1=待支付,2=已支付)
     * @throws Exception
     */
    Integer saveData(Integer category, Integer userId, Integer type, Integer orderId, Integer orderType, Integer payType,
                     Double amount, String code, Integer state) throws Exception;
 
 
    /**
     * 获取数据
     * @param orderId
     * @param payType
     * @param state
     * @return
     * @throws Exception
     */
    PaymentRecord query(Integer category, Integer userId, Integer type, Integer orderId, Integer orderType,
                        Integer payType, Integer state) throws Exception;
}