/** * 列表信息页面 * * @return */ public String readyPage() { start_time = DateUtil.getPreNDay(-29); end_time = DateUtil.getCurrentDay(); if (null != message) { addActionMessage(getText(message)); } return SUCCESS; }
/** * 转向记录页面 * * @return */ public String showRecordPage() { queryObj = new DriverStatInfo(); queryObj.setBegTime(DateUtil.getPreNDay(-7)); queryObj.setEndTime(DateUtil.getPreDay()); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM"); Calendar cal = Calendar.getInstance(); cal.add(Calendar.MONTH, -1); queryObj.setMonth(sdf.format(cal.getTime())); return SUCCESS; }