@RequestMapping("bpm-task-def-notice-list") public String list( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, Model model) { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); page = bpmTaskDefNoticeManager.pagedQuery(page, propertyFilters); model.addAttribute("page", page); return "bpm/bpm-task-def-notice-list"; }
@RequestMapping("bpm-task-def-notice-export") public void export( @ModelAttribute Page page, @RequestParam Map<String, Object> parameterMap, HttpServletRequest request, HttpServletResponse response) throws Exception { List<PropertyFilter> propertyFilters = PropertyFilter.buildFromMap(parameterMap); page = bpmTaskDefNoticeManager.pagedQuery(page, propertyFilters); List<BpmTaskDefNotice> bpmCategories = (List<BpmTaskDefNotice>) page.getResult(); TableModel tableModel = new TableModel(); tableModel.setName("bpm-process"); tableModel.addHeaders("id", "name"); tableModel.setData(bpmCategories); exportor.export(request, response, tableModel); }