2026-07-01 6b5f7c66fc40d7f6099d561e31a34fbd50dd20d3
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
package cn.iocoder.yudao.module.erp.api.sale;
 
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.erp.api.sale.dto.ErpSaleOrderCreateReqDTO;
import cn.iocoder.yudao.module.erp.api.sale.dto.ErpSaleOrderRespDTO;
 
/**
 * ERP 销售订单 API 接口
 *
 * @author 芋道源码
 */
public interface ErpSaleOrderApi {
 
    String PREFIX = "/rpc-api/erp/sale-order";
 
    /**
     * 创建销售订单
     *
     * @param createReqDTO 创建信息
     * @return 订单编号
     */
    CommonResult<Long> createSaleOrder(ErpSaleOrderCreateReqDTO createReqDTO);
 
    /**
     * 获取销售订单
     *
     * @param id 订单编号
     * @return 销售订单
     */
    CommonResult<ErpSaleOrderRespDTO> getSaleOrder(Long id);
 
    /**
     * 根据合同编号获取销售订单
     *
     * @param contractId 合同编号
     * @return 销售订单
     */
    CommonResult<ErpSaleOrderRespDTO> getSaleOrderByContractId(Long contractId);
 
}