package com.kiisoo.ic.customer.mapper;

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

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

/**
 * 客户vip
 */
@Repository
public interface OpVipDOMapper extends BaseMapper<OpVip> {
    /**
     * 会员list
     */
    List<OpVip> selectVipList(@Param("shopIds") List<Long> shopIds, @Param("startDate") Date startDate, @Param("endDate") Date endDate);

    /**
     * 会员总数
     */
    Long selectVipCount(@Param("shopIds") List<Long> shopIds, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
}
