日期:2014-05-17  浏览次数:20659 次

extjs 查询有结果,但是前台不显示,发生该错误可能是什么引起的
int l = Integer.parseInt(request.getParameter("limit"));
int s = Integer.parseInt(request.getParameter("start"));
String sql=" select * from (   select eei.*,cui.unit_name,cmuc.part_name,cuti.team_name,cui.unit_short_name,cbc.name status_name " +
" ,eei.birth_date as  age,eei.manager_type as  manager_type_name,eei.work_date as work_years,eei.enter_date as enter_years " +
",cafl.attach_file_position as photo_src" +
" from ag_employee_info eei "+
" left join com_unit_info cui on eei.unit_id=cui.unit_id" +
" left join com_unit_team_info cuti on eei.team_id=cuti.team_id and eei.unit_id = cuti.unit_id " +
" left join com_manage_unit_code cmuc on eei.unit_id=cmuc.unit_id and cmuc.team_id = eei.team_id and eei.part_code = cmuc.part_code " +
" left join com_base_code cbc on eei.status=cbc.no" +
"  left join com_attach_group_lst cagl on cagl.attach_group_id = eei.photo_id  "+
" left join com_attach_file_info cafl on cagl.attach_file_id = cafl.attach_file_id ) a where 1=1";
通过后台,查询sql,显示结果如下

但是前端UI未显示结果,发生该错误的可能有哪些?

------解决方案--------------------
查询是后台执行的吧?可以打印下结果。如果后台有结果,前台没有,需要排查两个地方:后台封装参数是否有问题;前台取参数是否有问题。