package com.ssj.dao.sys.cardinfo.dao;

import com.ssj.bean.sys.cardinfo.domain.CardAward;
import com.ssj.bean.sys.cardinfo.domain.CardAwardLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface CardQueryDao { 
	/**
	 * 查询活动ID 和活动奖项和奖品数量
	 * @param id
	 * @return
	 */
	Map<String,Object> getCardByIdAward(String id);
	/**
	 * 批量插入中奖sncode
	 * @param list
	 */
	public void batchInsertCardAward(List<CardAward> list);
	
	
	  /**
     * sncode码 某个活动的sncode
     * @param searchParams
     * @param pageable
     * @return
     */
    Page<Map<String, Object>> findCardAward(Map<String, Object> searchParams, Pageable pageable);
    
    
	/**
	 * 记录抽奖日志
	 */
	public void saveCardAwardLog(List<CardAwardLog> cardAwardLog);
	
	/**
	 * 大转盘，滚动，获取中奖的信息
	 * @param cardId
	 * @return
	 */
	public List<Map<String,Object>> getWinning(String cardId);
	
	
	  /**
     * 查询活动对应的抽奖日志
     * @param searchParams
     * @param pageable
     * @return
     */
    Page<Map<String, Object>> findAwardLog(Map<String, Object> searchParams, Pageable pageable);
    
    
    /**
     * 根据关键字查询活动
     * @param keyword
     * @return
     */
    List<Map<String, Object>>  getCardByKeyword(String keyword);

    
    public List<Map<String,Object>> zhongjiang(Map<String, Object> searchParams);

    public List<Map<String,Object>> exportCJlog(Map<String, Object> searchParams);
    
    
    Page<Map<String, Object>> findByPage(Map<String, Object> searchParams, Pageable pageable);
    
    
    
    
    
    
    
    
    
    
    
    
    /**
	 * 
	 * 新版抽奖活动 
	 * 2020年5月27日10:28:11
	 * 
	 */
	
	
	//查询奖品物资列表
    public Page<Map<String, Object>> findCardMaterialBylist(Map<String, Object> searchParams, Pageable pageable);
    
    
    
    
    
    
    

}
