默认时间改为一小时,只要不是闭区间都改为一小时;

This commit is contained in:
dongxiaoyan
2018-12-23 21:10:23 +08:00
parent 2e30d562a5
commit 829be054fb
3 changed files with 62 additions and 9 deletions

View File

@@ -1505,7 +1505,7 @@ public class DashboardService extends BaseService {
List<String> strDateRangeList = new ArrayList<String>();
Calendar calendar = Calendar.getInstance();
calendar.setTime(beginDate1);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
SimpleDateFormat sdf = new SimpleDateFormat("MM-dd HH:mm");
while (calendar.getTime().compareTo(endDate1)<=0) {
dateRangeList.add(calendar.getTime());
strDateRangeList.add(sdf.format(calendar.getTime()));