流量统计-统计页面初始化默认时间修改

This commit is contained in:
shangguanyanfei
2019-06-17 17:21:10 +08:00
parent 25a5cc802e
commit 323920263d

View File

@@ -70,7 +70,7 @@ public class ConfigStatisticsController extends BaseController {
String now = new SimpleDateFormat( "yyyy-MM-dd HH:mm:00" ).format(cal.getTime());//获取到完整的时间
cal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 1);
String oneHoursAgo = new SimpleDateFormat( "yyyy-MM-dd HH:mm:00" ).format(cal.getTime());
if(concent ==null || concent.equals("1")){
if(concent !=null && concent.equals("1")){
ConfigStatistic entity=new ConfigStatistic();
entity.setBeginDate(oneHoursAgo);
entity.setEndDate(now);