public Notice findById(Integer id) { return noticeMapper.findById(id); }
/** * 计算公告总条数 * * @return */ public Long count() { return noticeMapper.count(); }
/** * 查询分页数据,通过开始条数名和一页显示的条数 * * @param param * @return */ public List<Notice> findByParam(Map<String, Object> param) { return noticeMapper.findByParam(param); }
public void saveNotice(Notice notice) { notice.setUserid(ShiroUtil.getCurrentUserID()); notice.setRealname(ShiroUtil.getCurrentRealName()); noticeMapper.save(notice); }