1
This commit is contained in:
@@ -29,8 +29,8 @@ public class ExampleController extends BaseController {
|
||||
ExampleService exampleService;
|
||||
|
||||
@RequestMapping("")
|
||||
public ModelAndView index(ModelAndView modelAndView, Page page) {
|
||||
page = exampleService.search(page);
|
||||
public ModelAndView index(ModelAndView modelAndView, Page page, String keyword) {
|
||||
page = exampleService.search(page, keyword);
|
||||
|
||||
List<ExampleExt> exts = new ArrayList<ExampleExt>();
|
||||
for (Example example : (List<Example>) page.getList()) {
|
||||
@@ -46,6 +46,7 @@ public class ExampleController extends BaseController {
|
||||
|
||||
modelAndView.addObject("adminList", jpaHelper.findAll(Admin.class));
|
||||
modelAndView.addObject("page", page);
|
||||
modelAndView.addObject("keyword", keyword);
|
||||
modelAndView.setViewName("/example/index");
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user