package com.jeesharp.business.modules.marketing.stats.mapper;

import com.jeesharp.business.modules.marketing.stats.vo.MarketingStatsChannelItemVO;
import com.jeesharp.business.modules.marketing.stats.vo.MarketingStatsDailyTrendItemVO;
import com.jeesharp.business.modules.marketing.stats.vo.MarketingStatsQueryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 会员营销统计 Mapper，查询入会、核销等本模块表数据。
 *
 * @author jeesharp
 * @since 2026-06-25
 */
@Mapper
public interface MarketingStatsMapper {

    Long countJoin(@Param("q") MarketingStatsQueryVO query,
                   @Param("startDateTime") java.time.LocalDateTime startDateTime,
                   @Param("endDateTime") java.time.LocalDateTime endDateTime);

    Long countVerify(@Param("q") MarketingStatsQueryVO query,
                     @Param("startDateTime") java.time.LocalDateTime startDateTime,
                     @Param("endDateTime") java.time.LocalDateTime endDateTime);

    List<MarketingStatsDailyTrendItemVO> dailyJoin(@Param("q") MarketingStatsQueryVO query,
                                                   @Param("startDateTime") java.time.LocalDateTime startDateTime,
                                                   @Param("endDateTime") java.time.LocalDateTime endDateTime);

    List<MarketingStatsDailyTrendItemVO> dailyVerify(@Param("q") MarketingStatsQueryVO query,
                                                     @Param("startDateTime") java.time.LocalDateTime startDateTime,
                                                     @Param("endDateTime") java.time.LocalDateTime endDateTime);

    List<MarketingStatsChannelItemVO> channelJoin(@Param("q") MarketingStatsQueryVO query,
                                                  @Param("startDateTime") java.time.LocalDateTime startDateTime,
                                                  @Param("endDateTime") java.time.LocalDateTime endDateTime);

    List<MarketingStatsChannelItemVO> channelVerify(@Param("q") MarketingStatsQueryVO query,
                                                  @Param("startDateTime") java.time.LocalDateTime startDateTime,
                                                  @Param("endDateTime") java.time.LocalDateTime endDateTime);
}
