public int count(List<Match> matches) {

        Query query = queryGenerator.getCountQuery(matches);
        // 执行操作
        String sql = query.getSql();
        return countBySQL(sql, query.getParams());
    }
public int count ( List < Match > matches ) { Query query = queryGenerator . getCountQuery ( matches ) ; String sql = query . getSql ( ) ; return countBySQL ( sql , query . getParams ( ) ) ; }
查询符合条件组合的记录数

@param matches

@return 2013-8-26 下午3:04:02 created by wangchongjie