package com.kiisoo.ic.customer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kiisoo.ic.customer.bean.FriendDTO;
import com.kiisoo.ic.customer.entity.OpSellerCustomerRelation;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * 导购客户
 */
@Repository
public interface OpSellerCustomerRelationDOMapper extends BaseMapper<OpSellerCustomerRelation> {

    /**
     * 查询用户
     * @param shopId
     * @param userId
     * @param sellerId
     * @param search
     * @param startDate
     * @param endDate
     * @param type
     * @return
     */
    List<FriendDTO> selectShopListByDate(@Param("shopId") Long shopId,
                                         @Param("userId") Long userId,
                                         @Param("sellerId") Long sellerId,
                                         @Param("search") String search,
                                         @Param("startDate") Date startDate,
                                         @Param("endDate") Date endDate,
                                         @Param("type") Integer type);
}
