Example #1
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;
 }
Example #2
0
 @Override
 public OperateLogVo findById(String id) {
   OperateLog operateLog = operateLogDao.findById(id);
   return BeanWrapBuilder.newInstance().wrap(operateLog, OperateLogVo.class);
 }
 @Override
 public List<SysParamItemVo> fetchCascade(String typeCode, String value) {
   List<SysParamItem> items = dao.fetchCascade(typeCode, value);
   return BeanWrapBuilder.newInstance().wrapList(items, SysParamItemVo.class);
 }