Commit 465aa02a by guojx

好办小程序埋点趋势图时间补零修复

parent b454ba6d
...@@ -32,7 +32,7 @@ public class DateExpandUtils { ...@@ -32,7 +32,7 @@ public class DateExpandUtils {
case 3: case 3:
calendar.setTime(dateType == 1 ? df.parse(startDate) : df.parse(endDate)); calendar.setTime(dateType == 1 ? df.parse(startDate) : df.parse(endDate));
calendar.add(Calendar.DAY_OF_YEAR, -29); calendar.add(Calendar.DAY_OF_YEAR, -29);
list = DateUtil.getBetweenDates(df.format(calendar.getTime()), startDate); list = DateUtil.getBetweenDates(df.format(calendar.getTime()), dateType == 1 ? startDate : endDate);
break; break;
case 4: case 4:
JSONObject jsonObject = new JSONObject(); JSONObject jsonObject = new JSONObject();
......
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