package com.centreproject.system.mapper.kpi;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.centreproject.system.domain.kpi.guestExperience.KpiVisitorCountryBreakdown;

import java.util.List;

/**
 * @author zhonglei.xu
 */
@DS("master")
public interface KpiVisitorCountryBreakdownMapper extends BaseMapper<KpiVisitorCountryBreakdown> {

    /**
     * 国籍分布60天
     * @return
     */
    List<KpiVisitorCountryBreakdown> getVisitorBreakdownByCountryOfResidenceLatest60Days();

    /**
     * 国籍分布60天按园区查询
     * @param parkCode
     * @return
     */
    List<KpiVisitorCountryBreakdown> getVisitorBreakdownByCountryOfResidenceLatest60DaysByParkCode(String parkCode);

    /**
     * 国籍分布实时
     * @return
     */
    List<KpiVisitorCountryBreakdown> getVisitorBreakdownByCountryOfResidenceDailyDays();

    /**
     * 国籍分布实时按园区查询
     * @return
     */
    List<KpiVisitorCountryBreakdown> getVisitorBreakdownByCountryOfResidenceDailyDaysByParkCode();

    /**
     * 性别分布
     * @param parkCode
     * @return
     */
    KpiVisitorCountryBreakdown getGenderDistribution(String parkCode);
}
