@Override public PageVo pageQuery(OperateLogBo bo) { PageVo vo = new PageVo(); Long total = operateLogDao.getTotal(bo); vo.setTotal(total); if (total == null || total == 0) return vo; List<OperateLog> operateLogList = operateLogDao.query(bo); List<OperateLogVo> vos = BeanWrapBuilder.newInstance().wrapList(operateLogList, OperateLogVo.class); vo.setData(vos); return vo; }
@Override public OperateLogVo findById(String id) { OperateLog operateLog = operateLogDao.findById(id); return BeanWrapBuilder.newInstance().wrap(operateLog, OperateLogVo.class); }