示例#1
0
  @Override
  public List<Notice> getNotices(int page) {

    SqlSession session = factory.openSession();
    NoticeDao dao = session.getMapper(NoticeDao.class);

    return dao.getNotices(page, "TITLE", "");
  }
示例#2
0
  @Override
  public Notice getNotice(String code) {
    // TODO Auto-generated method stub

    SqlSession session = factory.openSession();
    NoticeDao dao = session.getMapper(NoticeDao.class);

    return dao.getNotice(code);
  }
示例#3
0
  @Override
  public List<Notice> getNotices() {
    // TODO Auto-generated method stub

    SqlSession session = factory.openSession();
    NoticeDao dao = session.getMapper(NoticeDao.class);

    return dao.getNotices(1, "TITLE", "");
  }