src/org/nutz/dao/impl/sql/SqlTemplate.java
public List<Record> queryRecords(String sql,
                                     Map<String, Object> vars,
                                     Map<String, Object> params) {
        Sql sqlObj = createSqlObj(sql, params);
        sqlObj.setCallback(Sqls.callback.records());

        execute(sqlObj, vars, params);

        return sqlObj.getList(Record.class);
    }
public List<Record> queryRecords(String sql,
                                     Map<String, Object> vars,
                                     Map<String, Object> params) {
        Sql sqlObj = createSqlObj(sql, params);
        sqlObj.setCallback(Sqls.callback.records());

        execute(sqlObj, vars, params);

        return sqlObj.getList(Record.class);
    }
执行一个SQL查询操作，结果为Record对象列表。

@param sql
包含变量占位符的SQL
@param vars
变量map，无参数时，可为null
@param params
参数map，无参数时，可为null

@return Record列表，无查询结果时返回长度为0的List对象