xiangpei
2025-05-09 641b4a3b1572f3a75ce0bd7d645e34252237cf9c
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
package cn.lili.modules.order.order.service;
 
import cn.lili.common.vo.PageVO;
import cn.lili.modules.order.aftersale.entity.dos.AfterSale;
import cn.lili.modules.order.order.entity.dos.StoreFlow;
import cn.lili.modules.order.order.entity.dto.StoreFlowQueryDTO;
import cn.lili.modules.store.entity.dos.Bill;
import cn.lili.modules.store.entity.dto.BillSearchParams;
import cn.lili.modules.store.entity.vos.StoreFlowPayDownloadVO;
import cn.lili.modules.store.entity.vos.StoreFlowRefundDownloadVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
 
import java.util.List;
 
/**
 * 商家订单流水业务层
 *
 * @author Chopper
 * @since 2020/11/17 7:37 下午
 */
public interface StoreFlowService extends IService<StoreFlow> {
 
    /**
     * 支付订单
     *
     * @param orderSn 订单编号
     */
    void payOrder(String orderSn);
 
    /**
     * 订单取消
     * @param orderSn 订单
     */
    void orderCancel(String orderSn);
 
    /**
     * 订单退款
     *
     * @param afterSale 售后单
     */
    void refundOrder(AfterSale afterSale);
 
    /**
     * 获取商家流水
     *
     * @param storeFlowQueryDTO 查询参数
     * @return 返回分页
     */
    IPage<StoreFlow> getStoreFlow(StoreFlowQueryDTO storeFlowQueryDTO);
 
    /**
     * 根据参数查询一条数据
     *
     * @param storeFlowQueryDTO 查询参数
     * @return 返回分页
     */
    StoreFlow queryOne(StoreFlowQueryDTO storeFlowQueryDTO);
 
    /**
     * 获取结算单地入账流水
     *
     * @param storeFlowQueryDTO 查询条件
     * @return 入账流水
     */
    List<StoreFlowPayDownloadVO> getStoreFlowPayDownloadVO(StoreFlowQueryDTO storeFlowQueryDTO);
 
    /**
     * 获取结算单的退款流水
     *
     * @param storeFlowQueryDTO 查询条件
     * @return 退款流水
     */
    List<StoreFlowRefundDownloadVO> getStoreFlowRefundDownloadVO(StoreFlowQueryDTO storeFlowQueryDTO);
 
 
    /**
     * 根据结算单ID获取商家流水
     *
     * @param pageVO 分页
     * @param id     结算单ID
     * @param type   类型
     * @return 商家流水
     */
    IPage<StoreFlow> getStoreFlow(String id, String type, PageVO pageVO);
 
    /**
     * 根据结算单ID获取商家流水
     *
     * @param pageVO 分页
     * @param id     结算单ID
     * @return 商家流水
     */
    IPage<StoreFlow> getDistributionFlow(String id, PageVO pageVO);
 
 
    /**
     * 获取店铺流水
     *
     * @param storeFlowQueryDTO 店铺流水查询参数
     * @return 商家流水集合
     */
    List<StoreFlow> listStoreFlow(StoreFlowQueryDTO storeFlowQueryDTO);
 
    /**
     * 修改分账状态
     */
    void updateProfitSharingStatus();
 
    /**
     * 获取退款的流水
     *
     * @param searchParams
     * @return
     */
    Bill getRefundBill(BillSearchParams searchParams);
    /**
     * 获取订单的流水
     *
     * @param searchParams
     * @return
     */
    Bill getOrderBill(BillSearchParams searchParams);
}