src/main/java/com/ruoyi/basic/service/ICustomerService.java
@@ -9,6 +9,9 @@
import com.ruoyi.framework.web.domain.R;
import com.ruoyi.sales.vo.CustomerTransactionsDetailsVo;
import com.ruoyi.sales.vo.CustomerTransactionsVo;
import com.ruoyi.sales.vo.CustomerTransactionsProductVo;
import com.ruoyi.sales.vo.CustomerTransactionsShipmentVo;
import com.ruoyi.sales.vo.CustomerTransactionsSummaryVo;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
@@ -111,4 +114,29 @@
     * @return
     */
    IPage<CustomerTransactionsDetailsVo> customewTransactionsDetails(Page page, Long customerId);
    /**
     * 查询客户往来统计汇总(优化版)
     * @param customerId 客户ID
     * @return 统计汇总数据
     */
    CustomerTransactionsSummaryVo getCustomerTransactionsSummary(Long customerId);
    /**
     * 查询客户往来产品明细
     * @param page 分页参数
     * @param customerId 客户ID
     * @param salesLedgerId 销售台账ID(可选)
     * @return 产品明细分页数据
     */
    IPage<CustomerTransactionsProductVo> getCustomerTransactionsProducts(Page page, Long customerId, Long salesLedgerId);
    /**
     * 查询客户往来发货明细
     * @param page 分页参数
     * @param customerId 客户ID
     * @param salesLedgerId 销售台账ID(可选)
     * @return 发货明细分页数据
     */
    IPage<CustomerTransactionsShipmentVo> getCustomerTransactionsShipments(Page page, Long customerId, Long salesLedgerId);
}