示例#1
0
 private List<Map<String, String>> getHotKeywords(List<Map<String, String>> appList) {
   List<Map<String, String>> keywords = new ArrayList<Map<String, String>>();
   if (appList != null) {
     for (Map<String, String> appMap : appList) {
       int isKeywords = StringUtil.str2Int(appMap.get("isKeywords"), 2);
       if (isKeywords == 1) {
         keywords.add(appMap);
       }
     }
   }
   return keywords;
 }
示例#2
0
  private List<Map<String, String>> calculatHotNewApps(String key) {
    List<Map<String, String>> appList = getAllApps();

    List<Map<String, String>> hotnewApps = new ArrayList<Map<String, String>>();
    if (appList != null) {
      for (Map<String, String> app : appList) {
        String hotNew = app.get(key);
        if (!StringUtil.isEmpty(hotNew) && StringUtil.str2Int(hotNew) == 1) {
          hotnewApps.add(app);
        }
      }
    }
    return hotnewApps;
  }
示例#3
0
 private boolean isActived(String isActive) {
   if (!StringUtil.isEmpty(isActive) && StringUtil.str2Int(isActive) == 1) { // 参加活动
     return true;
   }
   return false;
 }