sql语句我再数据库直接测试没有问题,但是转为map就出现错误,请教一下,该怎么转为map呢?
Sql sql = Sqls.create(sqlStr.toString());
sql.setEntity(dao().getEntity(NutMap.class));
sql.setCallback(Sqls.callback.entities());
dao().execute(sql);
Object obj = sql.getList(NutMap.class);
return new HashMap<String , Object>(){{
put("data" , obj);
}};