package com.red.circle.other.infra.database.rds.dao.game;

import com.red.circle.framework.mybatis.dao.BaseDAO;
import com.red.circle.other.infra.database.rds.entity.game.GameRoomPkWinnerRecord;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 房间pk游戏 胜利者表 Mapper 接口.
 * </p>
 *
 * @author pengshigang
 * @since 2021-09-27
 */
public interface GameRoomPkWinnerRecordDAO extends BaseDAO<GameRoomPkWinnerRecord> {

  List<GameRoomPkWinnerRecord> weekTop(@Param("sysOrigin") String sysOrigin,
      @Param("isLastWeek") Boolean isLastWeek);

  List<GameRoomPkWinnerRecord> dayTop(@Param("sysOrigin") String sysOrigin,
      @Param("isYesterday") Boolean isYesterday);

  GameRoomPkWinnerRecord weekSinglesKing(@Param("sysOrigin") String sysOrigin,
      @Param("isLastWeek") Boolean isLastWeek);

  List<GameRoomPkWinnerRecord> listSpecifiedTimeWeekTop(@Param("sysOrigin") String sysOrigin,
      @Param("startTime") String startTime, @Param("endTime") String endTime);

  GameRoomPkWinnerRecord getSpecifiedTimeWeekSinglesKing(
      @Param("sysOrigin") String sysOrigin,
      @Param("startTime") String startTime, @Param("endTime") String endTime);

}
