コード例 #1
0
ファイル: GameServiceImpl.java プロジェクト: rolyer/kfcms
  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
ファイル: GameServiceImpl.java プロジェクト: rolyer/kfcms
  public int countListByStartTime(Date startTime) {
    Game game = new Game();
    game.setStartTime(startTime);

    return gameDao.countListByConditions(game, null);
  }