Pager pager = new OffsetPager(start, length);
Sql sql = Sqls.create("select a.id,a.loginname,a.phone,a.email," +
" b.name,b.gender" +
" from sys_user a" +
" left join edu_user_basic_info b" +
" on a.id = b.user_id" +
" where 1=1 " +
" and a.disabled ='0' and a.delFlag='0' $condition");
sql.setCondition(cnd);
sql.setPager(pager);
dao().execute(sql);
List<Record> list = sql.getList(Record.class);
List<Edu_user_basic_info> userInfo=new ArrayList<>();
List<Sys_user> user=new ArrayList<>();
for (Record re : list) {
Sys_user su = re.toEntity(dao().getEntity(Sys_user.class),"a.");
Edu_user_basic_info info=re.toEntity(dao().getEntity(Edu_user_basic_info.class),"b.");
userInfo.add(info);
user.add(su);
}
map.put("userInfo",userInfo);
map.put("user",user);
map.put("draw", draw);
map.put("recordsTotal", length);
return map;
用的是自定义sql,请问这个callBack需要自定义一个么,大体应该怎么写