14 小时以前 bfcc71f500625a26886b43c43a8fdf2ea1152844
src/main/java/com/ruoyi/basic/service/ICustomerService.java
@@ -7,6 +7,11 @@
import com.ruoyi.basic.pojo.Customer;
import com.ruoyi.basic.vo.CustomerVo;
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;
@@ -93,4 +98,45 @@
    void together(CustomerDto customerDto);
    Boolean back(Long id);
    /**
     * 查询客户往来列表
     * @param page
     * @param customerName
     * @return
     */
    IPage<CustomerTransactionsVo> customewTransactions(Page page, String customerName);
    /**
     * 查询客户往来明细列表
     * @param page
     * @param customerId
     * @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);
}