package com.iamberry.wechat.service.game.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.iamberry.wechat.core.entity.game.GameLogsDto;
import com.iamberry.wechat.core.entity.game.GamePrizeDto;
import com.iamberry.wechat.core.entity.game.GameSystemDto;
import com.iamberry.wechat.core.entity.order.Order;
import com.iamberry.wechat.service.game.dao.GameDao;
import com.iamberry.wechat.service.mapper.GameMapper;

@Repository
public class GameDaoImpl implements GameDao {
	
	@Autowired
	private GameMapper gameMapper;

	@Override
	public GameSystemDto selectGameByGameType(GameSystemDto gameSystemDto) {
		// TODO Auto-generated method stub
		return gameMapper.selectGameByGameType(gameSystemDto);
	}

	@Override
	public GameSystemDto selectGameByGameId(GameSystemDto gameSystemDto) {
		// TODO Auto-generated method stub
		return gameMapper.selectGameByGameId(gameSystemDto);
	}

	@Override
	public List<GamePrizeDto> selectGamePrizeByGameId(GamePrizeDto gamePrizeDto) {
		// TODO Auto-generated method stub
		return gameMapper.selectGamePrizeByGameId(gamePrizeDto);
	}

	@Override
	public List<GameLogsDto> selectGameLogsByGameId(GameLogsDto gameLogsDto) {
		// TODO Auto-generated method stub
		return gameMapper.selectGameLogsByGameId(gameLogsDto);
	}

	@Override
	public Integer selectGameLogsCount(GameLogsDto gameLogsDto) {
		// TODO Auto-generated method stub
		return gameMapper.selectGameLogsCount(gameLogsDto);
	}

	@Override
	public int saveLogs(GameLogsDto dto) {
		// TODO Auto-generated method stub
		return gameMapper.saveLogs(dto);
	}

	@Override
	public int updatePrizeNum(Integer prize) {
		// TODO Auto-generated method stub
		return gameMapper.updatePrizeNum(prize);
	}

	@Override
	public List<GameLogsDto> selectWinningLogsByGameId(GameLogsDto logDto) {
		// TODO Auto-generated method stub
		return gameMapper.selectWinningLogsByGameId(logDto);
	}

	@Override
	public Integer selectWinningCount(GameLogsDto logDto) {
		// TODO Auto-generated method stub
		return gameMapper.selectWinningCount(logDto);
	}

	@Override
	public Integer selectOrderByCreateDate(Order order) {
		// TODO Auto-generated method stub
		return gameMapper.selectOrderByCreateDate(order);
	}

}
