流量统计-统计页面初始化默认时间修改
This commit is contained in:
@@ -70,7 +70,7 @@ public class ConfigStatisticsController extends BaseController {
|
|||||||
String now = new SimpleDateFormat( "yyyy-MM-dd HH:mm:00" ).format(cal.getTime());//获取到完整的时间
|
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);
|
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());
|
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();
|
ConfigStatistic entity=new ConfigStatistic();
|
||||||
entity.setBeginDate(oneHoursAgo);
|
entity.setBeginDate(oneHoursAgo);
|
||||||
entity.setEndDate(now);
|
entity.setEndDate(now);
|
||||||
|
|||||||
Reference in New Issue
Block a user