gongchunyi
2 天以前 6ef4265f1859e88e3e5ff22ef1848e12fa849e26
src/main/java/com/ruoyi/sales/service/ISalesLedgerService.java
@@ -5,6 +5,7 @@
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.basic.pojo.Customer;
import com.ruoyi.common.enums.SaleEnum;
import com.ruoyi.approve.pojo.ApproveProcess;
import com.ruoyi.sales.dto.*;
import com.ruoyi.sales.pojo.SalesLedger;
import com.ruoyi.sales.pojo.SalesLedgerProcessRoute;
@@ -15,6 +16,7 @@
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
/**
 * 销售台账Service接口
@@ -68,6 +70,35 @@
    void salesStock(SalesProductStockDto dto);
    void executeSalesStockApproved(Long salesLedgerId, List<Long> salesLedgerProductIds);
    void executeSalesScanInboundApproved(Long salesLedgerId, Map<Long, BigDecimal> inboundQtyByLineId);
    void executeSalesScanInboundUnqualifiedApproved(Long salesLedgerId, Map<Long, BigDecimal> inboundQtyByLineId);
    List<Customer> shippedCustomers();
    void scanInbound(SalesScanInboundDto dto);
    void scanInboundUnqualified(SalesScanInboundDto dto);
    void scanOutbound(SalesScanInboundDto dto);
    void scanOutboundUnqualified(SalesScanInboundDto dto);
    /**
     * APP 扫码发货:发起发货审批(审批通过后自动扣库存、发货台账与订单状态为已发货)
     */
    void scanShipApply(SalesScanShipDto dto);
    /**
     * 发货审批(类型 7)节点状态变更:扫码发货流程 {@code approveRemark} 以 {@code SCAN_SHIP_DELIVERY_JSON:} 开头时回调。
     *
     * @param outcomeStatus 审批流状态:1 审核中 2 通过 3 拒绝
     */
    void onScanShipDeliveryApproveOutcome(ApproveProcess approveProcess, Integer outcomeStatus);
    void shippingImport(MultipartFile file);
    void notShippingImport(MultipartFile file);
}