下面这种写法能优化么, 感觉太纠结了呀
Sql sql = Sqls.create("select name,count(id) from a group by name" ); sql.setCallback(Sqls.callback.maps()); dao.execute(sql); List<Map> list = sql.getList(Map.class);
看看SqlTemplate类
谢谢