package com.ruoyi.basic.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.ruoyi.basic.dto.CustomerDto;
|
import com.ruoyi.basic.pojo.Customer;
|
import com.ruoyi.basic.vo.CustomerVo;
|
import com.ruoyi.sales.vo.CustomerTransactionsDetailsVo;
|
import com.ruoyi.sales.vo.CustomerTransactionsVo;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 客户档案Mapper接口
|
*
|
* @author ruoyi
|
* @date 2025-05-07
|
*/
|
@Mapper
|
public interface CustomerMapper extends BaseMapper<Customer> {
|
|
IPage<CustomerVo> listPage(Page<CustomerDto> page, @Param("c") CustomerDto customer, @Param("loginUserId") Long loginUserId);
|
|
List<CustomerVo> list(@Param("c") CustomerDto customer, @Param("loginUserId") Long loginUserId);
|
|
IPage<CustomerTransactionsVo> customewTransactions(Page page, @Param("customerName") String customerName);
|
|
IPage<CustomerTransactionsDetailsVo> customewTransactionsDetails(Page page, @Param("customerId") Long customerId);
|
|
List<Map<String, Object>> getShippedAmountByCustomerIds(@Param("customerIds") List<Long> customerIds);
|
|
List<Map<String, Object>> getShippedAmountBySalesLedgerIds(@Param("salesLedgerIds") List<Long> salesLedgerIds);
|
}
|