package com.pcloud.book.advertising.dao;

import java.util.List;
import com.pcloud.book.advertising.entity.AdvertisingExposureRecord;
import com.pcloud.book.group.dto.AdGroupQrcodeDTO;
import com.pcloud.common.core.dao.BaseDao;

/**
 * Description 广告位曝光记录数据访问层接口
 * @author PENG
 * @date 2019/2/28
 */
public interface AdvertisingExposureRecordDao extends BaseDao<AdvertisingExposureRecord> {

    /**
     * 获取广告位投放微信群曝光量前几位
     * @return
     */
    List<AdGroupQrcodeDTO> advertisingWechatGroupRankTop();

    /**
     * 更新之前为0的曝光量
     * @param qrcodeId
     * @param peopleCounts
     */
    void updateExposureByQrcode(Long qrcodeId, Integer peopleCounts);
}
