Sql sql = Sqls.create("SELECT m.* FROM master m JOIN detail d ON m.d_id=d.d_id WHERE d.name='aa'");
sql.setCallback(Sqls.callback.entities());
sql.setEntity(dao.getEntity(Master.class));
dao.execute(sql);
List<Master> list = sql.getList(Master.class);
上面这种我知道 ,我现在明确统计的时候肯定就一条记录,怎么写不用返回list? 我就返回一条record,即sql.setCallback(Sqls.callback.record());
后面咋写啊 还需要setEntity吗?