package com.pcloud.book.rightsSetting.dao;

import com.pcloud.book.rightsSetting.entity.RightsNowPopup;
import com.pcloud.common.core.dao.BaseDao;

/**
 * 权益也弹出记录(RightsNowPopup)表数据库访问层
 *
 * @author makejava
 * @since 2020-09-16 10:30:07
 */
public interface RightsNowPopupDao extends BaseDao<RightsNowPopup>{


    /**
     * 查看点击记录
     * @author：zhuyajie
     * @date：2020/9/16 11:03
     *  * @param null
     */
    Integer getUserPopupClickCount(Long wechatUserId, Long bookId, Long channelId, Long adviserId, Integer popupType);
    /**
     * 查资源是否点击
     * @author：zhuyajie
     * @date：2020/9/17 14:33
     *  * @param null
     */
    Integer getUserPopupClickCountByServe(RightsNowPopup rightsNowPopup);

    /**
     * 查弹出次数
     * @author：zhuyajie
     * @date：2020/11/20 16:58
     *  * @param null
     */
    Integer getPopupCount(Long wechatUserId, Long bookId, Integer popupType);
}