@RequestMapping("11") public String list1(Model model, Pageable pageable, ServletRequest request, HttpSession session) { // 从请求中取得search_开头的参数及其值,并封装到map中,供后续查询使用 Map<String, Object> searchParams = Servlets.getParametersStartingWith(request, "search_"); User user = getCurrentUser(session); // 获取分页对象 Page<Order> OrderList = non_payOrderService.findWithPage(pageable, user); model.addAttribute("OrderList", OrderList); model.addAttribute( "searchParams", Servlets.encodeParameterStringWithPrefix(searchParams, "search_")); return "myOrder/appointOrder"; }
@RequestMapping("testFileUpload1") public String upload( Model model, Pageable pageable, ServletRequest request, HttpSession session) { // 从请求中取得search_开头的参数及其值,并封装到map中,供后续查询使用 Map<String, Object> searchParams = Servlets.getParametersStartingWith(request, "search_"); User user = getCurrentUser(session); // 获取分页对象 Page<Order> productList = non_payOrderService.findWithPage(pageable, user); System.out.println("productList====" + productList); model.addAttribute("productList", productList); model.addAttribute( "searchParams", Servlets.encodeParameterStringWithPrefix(searchParams, "search_")); return "production/meifaProductUploadTest"; }