package com.dk.mdm.mapper.mst;

import com.dk.mdm.model.pojo.mst.Customer;
import com.dk.common.mapper.BaseMapper;
import com.dk.mdm.model.query.mst.CustomerQuery;
import com.dk.mdm.model.response.mst.CustomerResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
*  客户资料 Mapper
*/
@Repository
public interface CustomerMapper extends BaseMapper<Customer>{
    /**
     * @desc   : 根据条件进行查询
     * @author : 于继渤
     * @date : 2024/2/26 10:36
     */
    List<CustomerResponse> selectByCond(CustomerQuery customerQuery);

    /**
     * @desc   : 根据条件进行查询（数量）
     * @author : 于继渤
     * @date : 2024/2/26 10:36
     */
    Long countByCond(CustomerQuery customerQuery);


    /**
     * @desc : 查询跟进人
     * @author : 于继渤
     * @date : 2022-05-26 14:05
     */
    Object selectFollowStaffs(@Param("id") String id);
    CustomerResponse selectByIdRespone(@Param("id") String id);


    int updateFollowStaffs(Customer customer);
}

