예제 #1
0
 public Notice findById(Integer id) {
   return noticeMapper.findById(id);
 }
예제 #2
0
 /**
  * 计算公告总条数
  *
  * @return
  */
 public Long count() {
   return noticeMapper.count();
 }
예제 #3
0
 /**
  * 查询分页数据,通过开始条数名和一页显示的条数
  *
  * @param param
  * @return
  */
 public List<Notice> findByParam(Map<String, Object> param) {
   return noticeMapper.findByParam(param);
 }
예제 #4
0
  public void saveNotice(Notice notice) {

    notice.setUserid(ShiroUtil.getCurrentUserID());
    notice.setRealname(ShiroUtil.getCurrentRealName());
    noticeMapper.save(notice);
  }