Ejemplo n.º 1
0
  @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";
  }
Ejemplo n.º 2
0
  @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);
  }