예제 #1
0
 /*
  * (non-Javadoc)
  *
  * @see
  * com.jcin.cms.service.system.IUserService#select(com.jcin.cms.utils.Page)
  */
 @Override
 public Page select(Page page) {
   super.select(page);
   // setOrderByClause("SER_NO  asc , ORG_ID desc");
   UserCriteria userCriteria = new UserCriteria();
   userCriteria.setOrderByClause("id desc");
   userCriteria.setPage(page);
   @SuppressWarnings("rawtypes")
   List list = userMapper.selectByExample(userCriteria);
   page.setRows(list);
   int total = userMapper.countByExample(userCriteria);
   page.setTotal(total);
   return page;
 }
예제 #2
0
 // @Override
 @Override
 public Page select(UserCriteria criteria) {
   Page page = new Page();
   if (null != criteria) {
     if (null != criteria.getPage()) {
       page = criteria.getPage();
     }
   }
   @SuppressWarnings("rawtypes")
   List list = userMapper.selectByExample(criteria);
   page.setRows(list);
   int total = userMapper.countByExample(criteria);
   page.setTotal(total);
   return page;
 }