无关风月
2025-01-26 523797c2e9e4e8934751327db754f1f77763f356
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
package com.xinquan.order.service;
 
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinquan.order.api.domain.Order;
import com.xinquan.order.domain.vo.ClientPlaceOrderVO;
 
import java.math.BigDecimal;
import java.util.List;
 
/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author mitao
 * @since 2024-08-21
 */
public interface OrderService extends IService<Order> {
 
    /**
     * 创建待支付订单
     *
     * @param targetId    目标id
     * @param orderFrom   订单来源 1=冥想音频 2=课程
     * @param receiverId  被赠送课程APP用户id
     * @param balanceFlag 是否使用余额抵扣 1=是 2=否
     * @param payType     支付方式 1=微信 2=支付宝
     * @return 下单返回数据视图对象
     * @see com.xinquan.order.domain.vo.ClientPlaceOrderVO
     */
    ClientPlaceOrderVO placeOrder(Long targetId, Integer orderFrom, Long receiverId,Long orderId,
            Integer balanceFlag, Integer payType,BigDecimal amount,Integer vipType,Integer type) throws Exception;
 
    /**
     * 根据类型获取已完成的订单列表
     *
     * @param userId    用户id
     * @param orderFrom 订单来源
     * @return
     */
    List<Order> getOrderListByType(Long userId, Integer orderFrom);
 
    String placeOrderApple(Long targetId, Integer orderFrom,
                           Long receiverId, Integer balanceFlag, BigDecimal amount,
                           Integer vipType,
                           String transactionIdentifier,
                           String originTransactionIdentifier,String receipt);
 
    String refund(Long uid) throws Exception;
}