示例#1
0
 public static NotificationEO queryLastNotify() {
   try {
     return FinanceFundsApp.getDB()
         .findFirst(Selector.from(NotificationEO.class).orderBy("CreateTime", true));
   } catch (DbException e) {
     e.printStackTrace();
   }
   return null;
 }
示例#2
0
 public static List<NotificationEO> queryNotifyList(Integer pageNum, Integer pageSize) {
   Log.d(TAG, "queryNotifyList()");
   try {
     return FinanceFundsApp.getDB()
         .findAll(
             Selector.from(NotificationEO.class)
                 .orderBy("CreateTime", true)
                 .limit(pageSize)
                 .offset(pageSize * pageNum));
   } catch (DbException e) {
     e.printStackTrace();
   }
   return null;
 }