@RequestMapping("save") public String save(TourismDetail tourismDetail, Model model) { // tourismDetailService.saveOrUpdate(tourismDetail); addMessage(model, "保存省会信息成功"); model.addAttribute("tourism", new Tourism()); return "redirect:" + adminPath + "/tourism/save_expand/" + tourismDetail.getTourism().getId(); }
@RequestMapping("save_detail/{id}") public String edit(TourismDetail tourismDetail, Model model) { if (tourismDetail != null && !StringUtils.isEmpty(tourismDetail.getId())) { tourismDetail = tourismDetailService.get(tourismDetail); } model.addAttribute("tourismDetail", new TourismDetail()); return "tourism/tourism/save_route"; }