public List<GameVO> queryListByStartTime(Integer page, Integer pageSize, Date startTime) { Integer offset = (page - 1) * pageSize; Game game = new Game(); game.setStartTime(startTime); game.setStatus(1); List<Game> list = gameDao.queryListByConditions(offset, pageSize, game, null); return transformation(list); }
public int countListByStartTime(Date startTime) { Game game = new Game(); game.setStartTime(startTime); return gameDao.countListByConditions(game, null); }