@Override public NoticeRecoveryBO get(Integer id) { try { NoticeRecoveryBO noticeRecoveryBO = new NoticeRecoveryBO(); BeanUtils.copyProperties(noticeRecoveryBO, noticeRecoveryDao.get(id)); return noticeRecoveryBO; } catch (Exception e) { e.printStackTrace(); return null; } }
@Override public PageInfo getAll(NoticeRecoveryBO noticeRecoveryBO) { try { PageHelper.startPage(noticeRecoveryBO.getPage(), noticeRecoveryBO.getRows()); Map<String, Object> re = Bean2Map.trans(noticeRecoveryBO); List list = noticeRecoveryDao.getAll(re); return PageInfo.clone(list); } catch (Exception e) { e.printStackTrace(); return null; } }