package com.pcloud.book.weixinclock.dao;

import com.pcloud.book.weixinclock.entity.WeixinClockReward;
import com.pcloud.common.core.dao.BaseDao;

import java.util.List;

/**
 * @author 杨涛
 * @description 奖励
 * @date 2019/8/15 14:04
 */
public interface WeixinClockRewardDao extends BaseDao<WeixinClockReward> {

    /**
     * 批量插入
     * @param weixinClockRewards
     */
    void batchInsert(List<WeixinClockReward> weixinClockRewards);

    /**
     * 获取奖励详情给编辑
     * @param weixinClockId
     */
    List<WeixinClockReward> listRewardDetail4Adviser(Long weixinClockId);

    /**
     * 获取奖励次数
     * @param weixinClockId
     */
    Integer getGrantNumFromReward(Long weixinClockId, Long clockDays);

}
