@At
@Ok("jsp:/user/list.jsp")
public Object demoSql() {
Sql sql = Sqls.create(
"select a.*,b.officeName as b_name,c.dutyName as c_name,d.roleName as d_name from t_user a LEFT JOIN t_office b on a.officeId=b.officeId LEFT JOIN t_duty c ON a.dutyId=c.dutyId LEFT JOIN t_role d on a.roleId =d.roleId ");
dao.execute(sql);
List<Record> list = sql.getList(Record.class);
Map<String, Object> map = new HashMap<String, Object>();
map.put("list", list);
return map;
}
jsp页面,应该怎么调用呢?求教~