作者:宝贝小左手很开心 | 来源:互联网 | 2023-10-12 16:23
计算机毕业设计-基于协同过滤算法的旅游管理系统-基于SSM的旅游定制系统(源码+讲解+文档)
1 开发环境及工具下载
- 开发语言:Java
- 后台:SSM(Spring+SpringMVC+Mybatis)
- 数据库:MySQL
- 工具:Idea、Eclipse、MyEclipse (选其一)
- 其他:jdk1.8、maven、Tomcat
eclipse 下载
mysql 5.7 下载
jdk 1.8 下载
tomcat 8.0 下载
maven 3.5 下载
idea 下载
2 功能介绍
2.1 管理员用例图
管理员角色主要包含的功能有商品信息、登录、登出、房间信息、主题信息、订单信息、用户管理、定制信息等功能,管理员用例图如下图所示。
普通用户进入到协同过滤旅游系统拥有的功能有旅游产品、服务制定、咨询、个人中心、订购的功能权限,具体内容如下图所示。
2.3 系统功能结构图
3 部分运行界面
3.1 用户部分运行界面
3.2 管理员部分运行界面
4 更多推荐
ssm在线点餐系统(沙箱支付)
基于SpingBoot的高校就业生就业服务平台
基于springboot的社区志愿者管理系统
5 首页获取推荐功能代码
@Controller
public class IndexController {&#64;Autowiredprivate IProductService productService;&#64;Autowiredprivate IThemeService themeService;&#64;Autowiredprivate IUserActionService userActionService;&#64;RequestMapping("/register")public String register(){return "index/register";}&#64;RequestMapping("/customized")public String customized(){return "index/customized";}&#64;RequestMapping("/navigation")public String navigation(){return "index/navigation";}&#64;RequestMapping("/productlistView")public String plView(Model model){List<Theme> themes&#61;themeService.selectList(null);model.addAttribute("themes",themes);return "index/product_list";}&#64;RequestMapping("/indexView")public String indexView(HttpSession session,Model model) throws Exception {List<Product> productList&#61;productService.getIndexproduct(6);List<Product> hotPList&#61;productService.hotProduct(6);User loginUser &#61; (User)session.getAttribute(Const.CURRENT_USER);List<Product> recommendProductList &#61; new ArrayList<>();if (loginUser!&#61;null) {RecommendUtil recommendUtil &#61; new RecommendUtil();List<Long> recommendList &#61; recommendUtil.getRecommend(loginUser.getId());for (int i&#61;0;i<recommendList.size();i&#43;&#43;){Product product &#61; productService.selectById(recommendList.get(i));recommendProductList.add(product);}Integer flag &#61; 6-recommendList.size();if (flag>0){EntityWrapper<UserAction> userActionEntityWrapper &#61; new EntityWrapper<>();userActionEntityWrapper.eq("userid",loginUser.getId());userActionEntityWrapper.orderBy("score",false);List<UserAction> userActionList &#61; userActionService.selectList(userActionEntityWrapper);for (int i &#61;0;i<userActionList.size();i&#43;&#43;){String pid&#61;userActionList.get(i).getProductid();Boolean isExist&#61;false;for (int j &#61;0;j<recommendProductList.size();j&#43;&#43;){if (pid.equals(recommendProductList.get(j).getPid())){isExist&#61;true;}}if (!isExist){Product product &#61; productService.selectById(pid);recommendProductList.add(product);}if (recommendProductList.size()&#61;&#61;6){break;}}}}model.addAttribute("recommendProductList",recommendProductList);model.addAttribute("hotPList",hotPList);model.addAttribute("productList",productList);return "index/index";}&#64;RequestMapping("/userinfoView")public String userinfoView(){return "index/user_info";}&#64;RequestMapping("/myorder")public String myorder(){return "index/my_order";}&#64;RequestMapping("/plistView")public String plistView(){return "index/plist";}&#64;RequestMapping("/adminLoginView")public String adloginView(){return "backend/admin_login";}
}
注意&#xff1a;该项目只展示部分功能&#xff0c;如需了解&#xff0c;评论区咨询即可。
希望和大家多多交流&#xff01;&#xff01;
源码项目、定制开发、代码讲解、答辩辅导