add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
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.iotechn.unimall.biz.client.erp;
 
import com.dobbinsoft.fw.core.exception.ServiceException;
import com.iotechn.unimall.data.dto.order.OrderDTO;
 
import java.math.BigDecimal;
import java.util.List;
 
/**
 * Erp对接客户端
 * 职能:
 * 1. 通过ERP同步类目、商品
 * 2. 订单支付成功后,向ERP销售制单 & 销售出库 & 销售收款单
 * 3. 订单退货,向ERP下退货单 & 销售退款单
 *
 * 4. 接受ERP通知:
 * 4.1. 接受ERP库存更改通知
 */
public interface ErpClient {
 
    /**
     * 从ERP同步类目
     * @return
     */
    public boolean syncCategories() throws ServiceException;
 
    /**
     * 从ERP同步商品
     * 返回同步结果信息
     * @return
     */
    public List<String> syncProducts() throws ServiceException;
 
    /**
     * 下销售制单 & 销售出库 & 销售收款
     * @return
     */
    public void takeSalesHeader(String orderNo) throws ServiceException;
 
    /**
     * 下退货入库单 & 销售退款单
     * 当在商户后台点确认的时候,需要STOCK RETURN退货单,来补充库存
     * @return
     */
    public void takeStockReturnOrder(String orderNo) throws ServiceException;
 
    /**
     * 调用库存更改(同步)
     */
    public void invokeStockChange(String barcode, BigDecimal stock);
 
 
}