예제 #1
0
  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);
  }
예제 #2
0
  public int countListByStartTime(Date startTime) {
    Game game = new Game();
    game.setStartTime(startTime);

    return gameDao.countListByConditions(game, null);
  }