@SuppressWarnings({ "unchecked", "rawtypes" })
  public String timeIntervalStat() {
    OqlBuilder<SessioninfoLogBean> query = OqlBuilder.from(SessioninfoLogBean.class, "sessioninfoLog");
    addConditions(query);
    query.select("hour(sessioninfoLog.loginAt),count(*)").groupBy("hour(sessioninfoLog.loginAt)");
    List rs = entityDao.search(query);
    Collections.sort(rs, new PropertyComparator("[0]"));
    put("logonStats", rs);
    return forward();
  }
@ SuppressWarnings ( { "unchecked" , "rawtypes" } ) public String timeIntervalStat ( ) { OqlBuilder < SessioninfoLogBean > query = OqlBuilder . from ( SessioninfoLogBean . class , "sessioninfoLog" ) ; addConditions ( query ) ; query . select ( "hour(sessioninfoLog.loginAt),count(*)" ) . groupBy ( "hour(sessioninfoLog.loginAt)" ) ; List rs = entityDao . search ( query ) ; Collections . sort ( rs , new PropertyComparator ( "[0]" ) ) ; put ( "logonStats" , rs ) ; return forward ( ) ; }
显示角色某时间段的登陆记录