时间:2023-10-13 12:54:01 | 来源:网站运营
时间:2023-10-13 12:54:01 来源:网站运营
第09期精品旅游网站:{ List<Hotel> top10Hotel = reserveService.getTop10Hotel(); List<Attractions> top10Attractions = reserveService.getTop10Attractions(); List<TravelRoute> top10Route = routeService.findTop10Route(); List<TravelStrategy> top10Strategy = strategyService.findTop10Strategy(); model.addAttribute("top10Strategy",top10Strategy); model.addAttribute("top10Route", top10Route); model.addAttribute("top10Hotel", top10Hotel); model.addAttribute("top10Attractions", top10Attractions); return "index"; }
{ /** * 启用 */ UP_STATUS(0, "启用"), /** * 停用 */ DOWM_STATUS(1, "停用"), /** * */ Third_STATUS(2, " "), ; private Integer code; private String message; StatusEnum(Integer code, String message) { this.code = code; this.message = message; } @Override public Integer getCode() { return code; } public String getMessage() { return message; }}
{ TravelRoute travelRoute = routeService.findTravelRouteById(id); //如果用户显示已经关注,就是查看关注列表 Boolean flag = routeService.isRoute(request, id); List<TravelRoute> top10Route = routeService.findTop10Route(); model.addAttribute("top10Route", top10Route); model.addAttribute("travelRoute", travelRoute); model.addAttribute("flag", flag); return "route/travelRoute-details"; }
关键词:旅游