package com.storlead.sales.mapper.customer;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.storlead.framework.mybatis.mapper.MyBaseMapper;
import com.storlead.sales.pojo.dto.customer.CustomerSearchDTO;
import com.storlead.sales.pojo.dto.customer.CustomerTransferDTO;
import com.storlead.sales.pojo.entity.customer.CustomerEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.storlead.sales.pojo.vo.customer.CustomerCompanyListVO;
import com.storlead.sales.pojo.vo.customer.CustomerListVO;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 客户基本信息表 Mapper 接口
 * </p>
 *
 * @author YPZ
 * @since 2024-04-12
 */
public interface CustomerMapper extends MyBaseMapper<CustomerEntity> {

    IPage<CustomerListVO> selectListVO(IPage<CustomerListVO> pageVO,@Param("cs")CustomerSearchDTO customerSearchDTO);

    List<CustomerCompanyListVO> errList(@Param("id") Long id, @Param("customerName") String customerName, @Param("customerForm") int customerForm, @Param("similarityValue") BigDecimal similarityValue);

    void updateCustomerNoFollowUpDate(@Param("idList") List<Long> idList);

    void replaceCollaborator(@Param("customer") CustomerTransferDTO customerTransferDTO);
}
