hsy
2026-08-28 a8e4132c3e2e9c3b3fcb0360901b35571b6464ea
src/main/java/com/ruoyi/basic/mapper/CustomerMapper.java
@@ -1,21 +1,32 @@
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 com.ruoyi.sales.vo.ProjectTransactionsVo;
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>
{
    /**
     * 查询客户档案
     *
     *
     * @param id 客户档案主键
     * @return 客户档案
     */
@@ -23,7 +34,7 @@
    /**
     * 查询客户档案列表
     *
     *
     * @param customer 客户档案
     * @return 客户档案集合
     */
@@ -31,7 +42,7 @@
    /**
     * 新增客户档案
     *
     *
     * @param customer 客户档案
     * @return 结果
     */
@@ -39,7 +50,7 @@
    /**
     * 修改客户档案
     *
     *
     * @param customer 客户档案
     * @return 结果
     */
@@ -47,7 +58,7 @@
    /**
     * 删除客户档案
     *
     *
     * @param id 客户档案主键
     * @return 结果
     */
@@ -55,9 +66,21 @@
    /**
     * 批量删除客户档案
     *
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteCustomerByIds(Long[] ids);
    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<ProjectTransactionsVo> projectTransactions(Page page, @Param("projectName") String projectName, @Param("customerName") String customerName, @Param("contractName") String contractName);
    IPage<CustomerTransactionsVo> customewTransactions(Page page, @Param("projectId") Long projectId, @Param("customerName") String customerName, @Param("contractName") String contractName);
    IPage<CustomerTransactionsDetailsVo> customewTransactionsDetails(Page page, @Param("projectId") Long projectId, @Param("customerId") Long customerId, @Param("contractName") String contractName);
    Map<String, Object> transactionsSummary();
}