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; }
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; }
private boolean isActived(String isActive) { if (!StringUtil.isEmpty(isActive) && StringUtil.str2Int(isActive) == 1) { // 参加活动 return true; } return false; }