Commit c2ba66cf by guojx

好办小程序埋点周趋势图修复

parent 61bcce1d
...@@ -35,9 +35,12 @@ public class DateExpandUtils { ...@@ -35,9 +35,12 @@ public class DateExpandUtils {
list = DateUtil.getBetweenDates(df.format(calendar.getTime()), dateType == 1 ? startDate : endDate); list = DateUtil.getBetweenDates(df.format(calendar.getTime()), dateType == 1 ? startDate : endDate);
break; break;
case 4: case 4:
calendar.setTime(DateUtil.strToDate(startDate, "yyyy-MM-dd"));
calendar.add(Calendar.WEEK_OF_YEAR, -11);
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
jsonObject.put("startDate", startDate); jsonObject.put("startDate", df.format(calendar.getTime()));
jsonObject.put("endDate", endDate); jsonObject.put("endDate", startDate);
jsonObject.put("pageNum", 1); jsonObject.put("pageNum", 1);
jsonObject.put("pageSize", 100); jsonObject.put("pageSize", 100);
Map<String, Object> res = DataApiUtils.http(jsonObject.toJSONString(), "data_pub_date_week"); Map<String, Object> res = DataApiUtils.http(jsonObject.toJSONString(), "data_pub_date_week");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment