public List<Map<String, Object>> toList(List<Object[]> table, String[] columns) {
		List<Map<String, Object>> resultList = new ArrayList<Map<String, Object>>();
		if ((table != null && columns != null) && table.size() > 0) {
			for (Object[] row : table) {
				Map<String, Object> result = new HashMap<String, Object>();
				for (int i = 0; i < columns.length; i++) {
					result.put(columns[i], row[i]);
				}
				resultList.add(result);
			}
		}
		return resultList;
	}
public List < Map < String , Object > > toList ( List < Object [ ] > table , String [ ] columns ) { List < Map < String , Object > > resultList = new ArrayList < Map < String , Object > > ( ) ; if ( ( table != null && columns != null ) && table . size ( ) > 0 ) { for ( Object [ ] row : table ) { Map < String , Object > result = new HashMap < String , Object > ( ) ; for ( int i = 0 ; i < columns . length ; i ++ ) { result . put ( columns [ i ] , row [ i ] ) ; } resultList . add ( result ) ; } } return resultList ; }
将查询结果映射成为List

@param table 查询结果
@param columns 列名（按查询结果顺序）

@return 映射后的List