下面执行查询得到的是一个列表,我想直接list<map<String,object>> 这样的接收怎么弄的
Sql sql = Sqls.create("SELECT a.* FROM sys_role a WHERE 1=1 AND a.id NOT IN (SELECT b.roleid FROM sys_power_use b)");
dao().execute(sql);
下面执行查询得到的是一个列表,我想直接list<map<String,object>> 这样的接收怎么弄的
Sql sql = Sqls.create("SELECT a.* FROM sys_role a WHERE 1=1 AND a.id NOT IN (SELECT b.roleid FROM sys_power_use b)");
dao().execute(sql);
这个怎么转list接收
public List<Map<String, Object>> RoleSelect(){
Sql sql = Sqls.create("SELECT a.* FROM sys_role a WHERE 1=1 AND a.id NOT IN (SELECT b.roleid FROM sys_power_use b)");
dao().execute(sql);
System.out.println(Sqls.callback.maps().toString());
return (List<Map<String, Object>>) Sqls.callback.maps();
}