xuhy
2025-01-09 712f70b2936079a131ecb1e63c6d337171618cad
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
package com.stylefeng.guns.modular.system.service;
 
import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.modular.system.model.PaymentRecord;
 
import java.util.List;
import java.util.Map;
 
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
     */
    List<PaymentRecord> query(Integer category, Integer userId, Integer type, Integer orderId, Integer orderType,
               Integer payType, Integer state) throws Exception;
 
    /**
     * 获取数据
     * @param orderId
     * @param payType
     * @param state
     * @return
     * @throws Exception
     */
    List<PaymentRecord> query_(Integer category, Integer userId, Integer type, Integer orderId, Integer orderType,
                        Integer payType, Integer state) throws Exception;
 
    /**
     * 导出
     * @return
     */
    List<Map<String,Object>> exportRecord(String userName, String phone, String code, String startTime, String endTime);
}