hibernate时间查询
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Calendar cal = Calendar.getInstance(); cal.add(Calendar.DATE, -5); String beginTime = sdf.format(cal.getTime()); Str...