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

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