package com.dsk.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dsk.system.domain.customer.Customer;
import com.dsk.system.domain.customer.dto.CustomerSearchDto;
import com.dsk.system.domain.customer.vo.CustomerListVo;
import com.dsk.system.domain.customer.vo.CustomerStatusListVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 客户信息表(Customer)表数据库访问层
 *
 * @author makejava
 * @since 2023-05-16 09:28:00
 */
@Mapper
public interface CustomerMapper extends BaseMapper<Customer> {

    List<CustomerListVo> selectList(@Param("dto") CustomerSearchDto dto);

    List<Customer> selectUserList(Long userId);

    Customer selectByCompanyNameAndUserId(@Param("companyName") String companyName, @Param("userId") Long userId);

    List<CustomerStatusListVo> selectStatusList(@Param("uipIds") List<String> uipIds, @Param("userId") Long userId);

    List<String> selectUipIdList(@Param("uipIds") List<String> uipIds, @Param("userId") Long userId);

}

