private <T> List<T> queryForPojoList0(Class<T> pojoType, Map<String, Object[]> argsMap, String[] requireFields) {
String[] sqls = null;
List<Object[]> argsObjs = null;
if (pojoType.getAnnotation(ORMAutoAssemble.class) != null && pojoType.getAnnotation(ORMHash.class) != null) {
// 处理散列表,分SQL查询
SqlSelHashGenerator sqlGenerator = new SqlSelHashGenerator(pojoType, requireFields, argsMap);
try {
sqls = sqlGenerator.getSqls();
argsObjs = sqlGenerator.getArgsObjs();
} catch (IllegalAccessException e) {
logger.error("init query sql error!", e);
throw new DataAccessException("init query sql error!", e);
}
} else {
SqlSelGenerator sqlGenerator = new SqlSelGenerator(pojoType, requireFields, argsMap);
try {
sqls = new String[]{sqlGenerator.getSql()};
argsObjs = new ArrayList<Object[]>();
argsObjs.add(sqlGenerator.getArgs());
} catch (IllegalAccessException e) {
logger.error("init query sql error!", e);
throw new DataAccessException("init query sql error!", e);
}
}