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.KpiYasIslandCampaigns;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Yas_Island_Campaigns KPI data mapper
 * @author zhonglei.xu
 */
@DS("master")
public interface KpiYasIslandCampaignsMapper extends BaseMapper<KpiYasIslandCampaigns> {
    /**
     * Yas_Island_Campaigns last 60 days
     * @return
     */
    KpiYasIslandCampaigns getYasIslandCampaignsLatest60Days();


    /**
     * Yas_Island_Campaigns daily data
     * @return
     */
    KpiYasIslandCampaigns getYasIslandCampaignsDailyData();


    /**
     * 批量同步数据
     * @param list
     * @return
     */
    int batchInsertOrUpdate(@Param("list") List<KpiYasIslandCampaigns> list);
}
