gaoluyang
6 天以前 8168aef3c7557c9e1361892270a1ebe35dbddba5
yudao-module-erp-api/src/main/java/cn/iocoder/yudao/module/erp/api/sale/ErpSaleOrderApi.java
@@ -11,7 +11,7 @@
/**
 * ERP 销售订单 API 接口
 *
 * @author 芋道源码
 * @author 超级管理员
 */
public interface ErpSaleOrderApi {
@@ -42,6 +42,21 @@
    CommonResult<ErpSaleOrderRespDTO> getSaleOrderByContractId(Long contractId);
    /**
     * 根据客户编号获取销售订单列表
     *
     * @param customerId 客户编号
     * @return 销售订单列表
     */
    CommonResult<List<ErpSaleOrderRespDTO>> getSaleOrderListByCustomerId(Long customerId);
    /**
     * 获取全部销售订单列表(财务对账、报表使用)
     *
     * @return 销售订单列表
     */
    CommonResult<List<ErpSaleOrderRespDTO>> getSaleOrderList();
    /**
     * 获取销售订单明细列表
     *
     * @param orderId 订单编号
@@ -68,12 +83,16 @@
    /**
     * 更新销售订单的出库状态
     *
     * 根据明细出库数量自动计算订单状态:
     * - 所有明细都完成出库 → 完成状态
     * - 部分明细完成出库 → 部分出库状态
     *
     * @param orderId 订单编号
     */
    CommonResult<Boolean> updateOrderOutStatus(Long orderId);
    /**
     * 更新销售订单的出库状态为指定值
     *
     * @param orderId   订单编号
     * @param outStatus 出库状态
     */
    CommonResult<Boolean> updateOrderOutStatusTo(Long orderId, Integer outStatus);
}