@RequestMapping("xzKzList-info-list") public String list( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, Model model) { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); page = xzKzListManager.pagedQuery(page, propertyFilters); model.addAttribute("page", page); // model.addAttribute("deptList",orgDepartmentManager.getAll()); model.addAttribute("ryMap", CommRyMapUtil.getRyMap()); model.addAttribute("xmMap", PjXmMapUtil.getXmMap()); return "xz/xzKzList-info-list"; }
@RequestMapping("xzKzList-info-export") public void export( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, HttpServletResponse response) throws Exception { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); page = xzKzListManager.pagedQuery(page, propertyFilters); List<XzKzList> xzKzLists = (List<XzKzList>) page.getResult(); TableModel tableModel = new TableModel(); // tableModel.setName("xzKzList info"); // tableModel.addHeaders("id", "name"); tableModel.setData(xzKzLists); exportor.export(response, tableModel); }