public String buildAllDataSql()
    {
        String sql="select * from ${tablename} ";
        String tablename= ModelHelper.getTableName(this.getClass());
        sql= StringUtil.replace(sql,"${tablename}",tablename);
        return sql;
    }
public String buildAllDataSql ( ) { String sql = "select * from ${tablename} " ; String tablename = ModelHelper . getTableName ( this . getClass ( ) ) ; sql = StringUtil . replace ( sql , "${tablename}" , tablename ) ; return sql ; }
获取所有数据 根据rev排序
@return