Example #1
0
 /**
  * 前台 兑换
  *
  * @param regionId 域id 默认为1
  * @param pagination
  * @return
  */
 public List<SucExchangeGift> exchange_recommend(Long regionId, Pagination pagination) {
   List<SucExchangeGift> result = null;
   try {
     // 过滤掉待重新上架状态
     String queryString =
         "from SucExchangeGift where regionId = ? and isShelf =? and priority>=80 and priority<90 ORDER BY compositorId asc, operateTime DESC ";
     Object[] params = {regionId, GiftEnumUtils.SHELFED};
     result = exchangeGiftDao.getObjectList(queryString, pagination, params);
   } catch (Exception e) {
     logger.error(e.getMessage(), e);
   }
   return result;
 }
Example #2
0
 public List<SucExchangeGift> getExchangeGiftList(
     String querySql, Object[] params, Pagination pagination) {
   return exchangeGiftDao.getObjectList(querySql, pagination, params);
 }