}

@RequestMapping("/login")

@ResponseBody

public Result login(SysUser sysUser, HttpServletResponse response) {

   return systemService.login(sysUser,response);

}

@RequestMapping("/userListUI")

public String userListUI(Model model, @PageableDefault(size = 10) Pageable pageable) {

    Page<User> page = systemService.getUserPage(pageable);

    model.addAttribute("page",page);

    return "system/user/list";

}

@RequestMapping("/saveUser")

@ResponseBody

public Result saveUser(User user) {

    return systemService.saveUser(user);

}

@RequestMapping("/getUserById")

@ResponseBody

public Result getUserById(String id) {

    return ResultGenerator.genSuccessResult(systemService.getUserById(id));

}

@RequestMapping("/logout")

public String logout(HttpServletRequest request, HttpServletResponse response) {

   systemService.logout(request,response);

    return "redirect:/system";

}

@RequestMapping("/hotelListUI")

public String hotelListUI(Model model, @PageableDefault(size = 10) Pageable pageable) {

    Page<Hotel> page = systemService.getHotelPage(pageable);

    model.addAttribute("page", page);

    return "system/hotel/list";

}

@RequestMapping("/saveHotel")

@ResponseBody

public Result saveHotel(Hotel hotel) {

    return systemService.saveHotel(hotel);

}

@RequestMapping("/updateStatus")

@ResponseBody

public Result updateStatus(String id) {

    return systemService.updateStatus(id);

}

@RequestMapping("/getHotelById")

@ResponseBody

public Result getHotelById(String id) {

    return ResultGenerator.genSuccessResult(systemService.getHotelById(id));

}

@RequestMapping("/attractionsListUI")

public String attractionsListUI(Model model, @PageableDefault(size = 10) Pageable pageable) {

    Page<Attractions> page = systemService.getAttractionsPage(pageable);

    model.addAttribute("page", page);

    return "system/attractions/list";

}

@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<TravelRoute> page = systemService.getTravelRoutePage(pageable);

    model.addAttribute("page", page);

    return "system/route/list";

}

@RequestMapping("/getTravelRouteById")

@ResponseBody

public Result getTravelRouteById(String id) {

    return ResultGenerator.genSuccessResult(systemService.getTravelRouteById(id));

}

@RequestMapping("/updateTravelRouteStatus")

@ResponseBody

public Result updateTravelRouteStatus(String id) {

    return systemService.updateTravelRouteStatus(id);

}

@RequestMapping("/saveTravelRoute")

@ResponseBody

public Result saveTravelRoute(TravelRoute travelRoute) {

    return systemService.saveTravelRoute(travelRoute);

}

@RequestMapping("/travelStrategyListUI")

public String travelStrategyListUI(Model model, @PageableDefault(size = 10) Pageable pageable) {

    Page<TravelStrategy> page = systemService.getTravelStrategyPage(pageable);

    model.addAttribute("page", page);

    return "system/strategy/list";

}

@RequestMapping("/getTravelStrategyById")

@ResponseBody

public Result getTravelStrategyById(String id) {

    return ResultGenerator.genSuccessResult(systemService.getTravelStrategyById(id));

}

@RequestMapping("/updateTravelStrategyStatus")

@ResponseBody

public Result updateTravelStrategyStatus(String id) {

    return systemService.updateTravelStrategyStatus(id);

}

@RequestMapping("/saveTravelStrategy")

@ResponseBody

public Result saveTravelStrategy(HttpServletRequest request,TravelStrategy travelStrategy) {

    return systemService.saveTravelStrategy(request,travelStrategy);

}

}



### 酒店和景点预订:

用户登录后可以进行酒店信息和景点信息查看以及预订

### ![](https://s2.51cto.com/images/20210829/1630166431498065.jpg)

![](https://s2.51cto.com/images/20210829/1630166431308337.jpg)

### 酒店和景点详情信息:

### 旅游攻略相关模块:

点击查看所有的旅行线路以及我关注的线路以及根据关键字搜索线路操作等

![](https://s2.51cto.com/images/20210829/1630166432818088.jpg)

### 收藏、关注、预订:

对于酒店、线路、景点 用户可以旅行攻略收藏、景点关注、预订酒店

![](https://s2.51cto.com/images/20210829/1630166432187437.jpg)

### 后台管理模块:

后台管理模块主要是一些基础数据的维护和管理、具体有用户管理、酒店信息管理、景点信息管理、攻略信息管理、路线信息管理、发布功率审核、以及登录退出等

功能大约模块如下、就不一一截图了

![](https://s2.51cto.com/images/20210829/1630166433124563.jpg)

### 用户发布攻略审核

### ![](https://s2.51cto.com/images/20210829/1630166433939571.jpg)

### 主要数据表表设计:

酒店表:

## 总结

至此,文章终于到了尾声。总结一下,我们谈论了简历制作过程中需要注意的以下三个部分,并分别给出了一些建议:

1.  技术能力:先写岗位所需能力,再写加分能力,不要写无关能力;
2.  项目经历:只写明星项目,描述遵循 STAR 法则;
3.  简历印象:简历遵循三大原则:清晰,简短,必要,要有的放矢,不要海投;

> 以及最后为大家准备的福利时间:简历模板+Java面试题+热门技术系列教程视频
> **[戳这里免费领取文中资料](https://gitee.com/vip204888/java-p7)**

![在这里插入图片描述](https://s2.51cto.com/images/20210829/1630166434490193.jpg)

![在这里插入图片描述](https://s2.51cto.com/images/20210829/1630166434120094.jpg)

![在这里插入图片描述](https://s2.51cto.com/images/20210829/1630166434446950.jpg)