@RequestMapping("/getAttractionsById") @ResponseBody public Result getAttractionsById(String id) { return ResultGenerator.genSuccessResult(systemService.getAttractionsById(id)); } @RequestMapping("/updateAttractionsStatus") @ResponseBody public Result updateAttractionsStatus(String id) { return systemService.updateAttractionsStatus(id); } @RequestMapping("/saveAttractions") @ResponseBody public Result saveAttractions(Attractions attractions) { return systemService.saveAttractions(attractions); } @RequestMapping("/travelRouteListUI") public String travelRouteListUI(Model model, @PageableDefault(size = 10) Pageable pageable) { Page page = systemService.getTravelRoutePage(pageable); model.addAttribute("page", page); return "system/route/list"; }