if (timeFilter == 1) {// 最近三个月 long curTimeSeconds = System.currentTimeMillis() / 1000L; para.put("startTime", curTimeSeconds - 3L * 30 * 24 * 60 * 60); para.put("endTime", curTimeSeconds); } else if (timeFilter == 2) {// 今年内 Calendar ca = Calendar.getInstance(); ca.set(ca.get(Calendar.YEAR), 0, 1, 0, 0, 0); para.put("startTime", ca.getTimeInMillis() / 1000L); para.put("endTime", System.currentTimeMillis() / 1000L); }