zss
6 天以前 c3435615d9503fa65130b84cc456a16e8df54482
src/main/java/com/ruoyi/basic/mapper/CustomerMapper.java
@@ -5,6 +5,9 @@
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;
@@ -12,7 +15,7 @@
/**
 * 客户档案Mapper接口
 *
 *
 * @author ruoyi
 * @date 2025-05-07
 */
@@ -21,7 +24,7 @@
{
    /**
     * 查询客户档案
     *
     *
     * @param id 客户档案主键
     * @return 客户档案
     */
@@ -29,7 +32,7 @@
    /**
     * 查询客户档案列表
     *
     *
     * @param customer 客户档案
     * @return 客户档案集合
     */
@@ -37,7 +40,7 @@
    /**
     * 新增客户档案
     *
     *
     * @param customer 客户档案
     * @return 结果
     */
@@ -45,7 +48,7 @@
    /**
     * 修改客户档案
     *
     *
     * @param customer 客户档案
     * @return 结果
     */
@@ -53,7 +56,7 @@
    /**
     * 删除客户档案
     *
     *
     * @param id 客户档案主键
     * @return 结果
     */
@@ -61,11 +64,17 @@
    /**
     * 批量删除客户档案
     *
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteCustomerByIds(Long[] ids);
    IPage<CustomerDto> listPage(Page<CustomerDto> page, @Param("c") CustomerDto 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);
}