@Override
 public PageVo query(SysParamItemBo bo) {
   PageVo vo = new PageVo();
   Long total = dao.getTotal(bo);
   vo.setTotal(total);
   if (total == 0) return vo;
   List<SysParamItem> sysParamItems = dao.query(bo);
   vo.setData(VoHelper.wrapVos(sysParamItems, this));
   return vo;
 }
Example #2
0
 @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;
 }