@RequestMapping("pjYqcheck-info-list") public String list( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, Model model) { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); page = pjYqcheckManager.pagedQuery(page, propertyFilters); model.addAttribute("page", page); return "gcgl/pjYqcheck-info-list"; }
@RequestMapping("pjYqcheck-info-export") public void export( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, HttpServletResponse response) throws Exception { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); page = pjYqcheckManager.pagedQuery(page, propertyFilters); List<PjYqcheck> pjYqchecks = (List<PjYqcheck>) page.getResult(); TableModel tableModel = new TableModel(); // tableModel.setName("pjYqcheck info"); // tableModel.addHeaders("id", "name"); tableModel.setData(pjYqchecks); exportor.export(response, tableModel); }