4 天以前 8f7c42bb0bced4697755299f67483be11da3e44d
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
package cn.iocoder.yudao.module.aftersales.api;
 
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.aftersales.api.dto.AfterSaleReturnRespDTO;
import cn.iocoder.yudao.module.aftersales.api.dto.AfterSaleTicketRespDTO;
 
import java.math.BigDecimal;
 
/**
 * 售后工单 API 接口(供 MES/ERP 跨模块调用)
 */
public interface AfterSaleTicketApi {
 
    String PREFIX = "/rpc-api/aftersales/ticket";
 
    /**
     * MES 退货质检完成后回调
     *
     * @param returnId      退货申请编号
     * @param qualityResult 质检结论
     * @param reportUrl     质检报告 URL
     */
    CommonResult<Boolean> onReturnQualityFinished(Long returnId, String qualityResult, String reportUrl);
 
    /**
     * MES 退货入库完成后回调
     *
     * @param returnId 退货申请编号
     */
    CommonResult<Boolean> onReturnInboundFinished(Long returnId);
 
    /**
     * ERP 退款完成后回调
     *
     * @param returnId           退货申请编号
     * @param actualRefundPrice  实退金额
     */
    CommonResult<Boolean> onRefundCompleted(Long returnId, BigDecimal actualRefundPrice);
 
    /**
     * 查询售后工单(供 MES/ERP 查询关联信息)
     *
     * @param id 工单编号
     */
    CommonResult<AfterSaleTicketRespDTO> getTicket(Long id);
 
    /**
     * 查询退货申请(供 MES/ERP 查询关联信息)
     *
     * @param id 退货申请编号
     */
    CommonResult<AfterSaleReturnRespDTO> getReturn(Long id);
 
}