基于SSM美食食谱管理系统Java家庭食谱安排系统的设计与实现(源码调试+讲解+文档)

您所在的位置:网站首页 家庭健康食谱表格 基于SSM美食食谱管理系统Java家庭食谱安排系统的设计与实现(源码调试+讲解+文档)

基于SSM美食食谱管理系统Java家庭食谱安排系统的设计与实现(源码调试+讲解+文档)

2024-07-13 20:37| 来源: 网络整理| 查看: 265

💕💕作者:计算机源码社 💕💕个人简介:本人七年开发经验,擅长Java、微信小程序、Python、Android等,大家有这一块的问题可以一起交流! 💕💕学习资料、程序开发、技术解答、代码讲解、文档报告

💕💕JavaWeb项目 💕💕微信小程序项目 💕💕Python项目 💕💕Android项目

文章目录 1、绪论1.1 项目背景1.2 项目现状 2、核心功能模块2.1 系统用例分析2.2 系统功能结构图2.3 文档报告目录 3、项目页面展示4、 核心代码

1、绪论 1.1 项目背景

  随着网络不断的普及发展,家庭食谱管理系统依靠网络技术的支持得到了快速的发展,首先要从用户的实际需求出发,通过了解用户的需求开发出具有针对性的首页、个人中心、用户管理、食谱分类管理、食谱信息管理、一周食谱健康安排管理、材料信息管理、美食论坛、系统管理功能,利用目前网络给用户带来的方便快捷这一特点对系统进行调整,设计的系统让用户的使用起来更加方便,本系统的主要目的就是给用户带来快捷与高效、安全,用户只要在家中就可以进行操作。同时随着电子商务的发展家庭食谱管理系统已经受到广大用户的关注。

1.2 项目现状

  随着国内经济形势的不断发展,中国互联网进入了一个难得的高峰发展时期,这使得中外资本家纷纷转向互联网市场。 然而,许多管理领域的不合理结构,人员不足以及管理需求的增加使得更多的人具备了互联网管理的意识。   在当今高度发达的信息中,信息管理改革已成为一种更加广泛和全面的趋势。美食食谱管理系统是基于Mysql数据库,在SSM程序设计的基础上实现的。为确保中国经济的持续发展,信息时代日益更新,更是蓬勃发展。同时,随着信息社会的快速发展,即动运动网站设计面临着越来越多的信息,因此很难获得他们对高效信息的需求,如何使用方便快捷的方式使查询者在广阔的海洋信息中查询,存储,管理和共享信息方面有效,对我们的工作和生活具有重要的现实意义。因此,国内外学术界对此进行了深入而广泛的研究,一个新的研究领域——家庭美食食谱管理系统设计诞生了。

2、核心功能模块 2.1 系统用例分析

  基于SSM+Vue的家庭美食食谱管理系统采用Java语言,B/S的结构,同时也使用JavaWeb技术在动态页面上进行了设计,后台上采用Mysql数据库。家庭食谱管理系统的主要使用者分为管理员和用户这两大部分。通过本美食食谱管理系统可以提高管理食谱安排的效率,减少出错率,对于数据存储及查找有了更方便的操作。美食食谱管理系统的主要实现功能包括:

  ①管理员模块:系统中的核心用户是管理员,管理员登录后,通过管理员功能来管理后台系统。主要功能有:首页、个人中心、用户管理、食谱分类管理、食谱信息管理、一周食谱健康安排管理、材料信息管理、美食论坛、系统管理等功能。 在这里插入图片描述   ②用户:首页、个人中心、我的收藏管理、美食论坛,前台首页;首页、食谱信息、一周食谱健康安排、材料信息、美食论坛、公告信息、个人中心、后台管理。 在这里插入图片描述

2.2 系统功能结构图

在这里插入图片描述

2.3 文档报告目录

在这里插入图片描述在这里插入图片描述

3、项目页面展示

在这里插入图片描述 在这里插入图片描述 在这里插入图片描述 在这里插入图片描述 在这里插入图片描述 在这里插入图片描述 在这里插入图片描述

在这里插入图片描述 在这里插入图片描述

4、 核心代码 /** * 食谱信息 * 后端接口 */ @RestController @RequestMapping("/shipuxinxi") public class ShipuxinxiController { @Autowired private ShipuxinxiService shipuxinxiService; /** * 后端美食食谱列表 */ @RequestMapping("/page") public R page(@RequestParam Map params,ShipuxinxiEntity shipuxinxi, HttpServletRequest request){ EntityWrapper ew = new EntityWrapper(); PageUtils page = shipuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shipuxinxi), params), params)); return R.ok().put("data", page); } /** * 前端美食食谱列表 */ @IgnoreAuth @RequestMapping("/list") public R list(@RequestParam Map params,ShipuxinxiEntity shipuxinxi, HttpServletRequest request){ EntityWrapper ew = new EntityWrapper(); PageUtils page = shipuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shipuxinxi), params), params)); return R.ok().put("data", page); } /** * 列表 */ @RequestMapping("/lists") public R list( ShipuxinxiEntity shipuxinxi){ EntityWrapper ew = new EntityWrapper(); ew.allEq(MPUtil.allEQMapPre( shipuxinxi, "shipuxinxi")); return R.ok().put("data", shipuxinxiService.selectListView(ew)); } /** * 查询美食食谱 */ @RequestMapping("/query") public R query(ShipuxinxiEntity shipuxinxi){ EntityWrapper ew = new EntityWrapper(); ew.allEq(MPUtil.allEQMapPre( shipuxinxi, "shipuxinxi")); ShipuxinxiView shipuxinxiView = shipuxinxiService.selectView(ew); return R.ok("查询食谱信息成功").put("data", shipuxinxiView); } /** * 后端美食食谱详情 */ @RequestMapping("/info/{id}") public R info(@PathVariable("id") Long id){ ShipuxinxiEntity shipuxinxi = shipuxinxiService.selectById(id); shipuxinxi.setClicknum(shipuxinxi.getClicknum()+1); shipuxinxi.setClicktime(new Date()); shipuxinxiService.updateById(shipuxinxi); return R.ok().put("data", shipuxinxi); } /** * 前端美食食谱详情 */ @IgnoreAuth @RequestMapping("/detail/{id}") public R detail(@PathVariable("id") Long id){ ShipuxinxiEntity shipuxinxi = shipuxinxiService.selectById(id); shipuxinxi.setClicknum(shipuxinxi.getClicknum()+1); shipuxinxi.setClicktime(new Date()); shipuxinxiService.updateById(shipuxinxi); return R.ok().put("data", shipuxinxi); } /** * 赞或踩 */ @RequestMapping("/thumbsup/{id}") public R thumbsup(@PathVariable("id") String id,String type){ ShipuxinxiEntity shipuxinxi = shipuxinxiService.selectById(id); if(type.equals("1")) { shipuxinxi.setThumbsupnum(shipuxinxi.getThumbsupnum()+1); } else { shipuxinxi.setCrazilynum(shipuxinxi.getCrazilynum()+1); } shipuxinxiService.updateById(shipuxinxi); return R.ok(); } /** * 后端保存美食食谱 */ @RequestMapping("/save") public R save(@RequestBody ShipuxinxiEntity shipuxinxi, HttpServletRequest request){ shipuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue()); //ValidatorUtils.validateEntity(shipuxinxi); shipuxinxiService.insert(shipuxinxi); return R.ok(); } /** * 前端保存美食食谱 */ @RequestMapping("/add") public R add(@RequestBody ShipuxinxiEntity shipuxinxi, HttpServletRequest request){ shipuxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue()); //ValidatorUtils.validateEntity(shipuxinxi); shipuxinxiService.insert(shipuxinxi); return R.ok(); } /** * 修改美食食谱 */ @RequestMapping("/update") public R update(@RequestBody ShipuxinxiEntity shipuxinxi, HttpServletRequest request){ //ValidatorUtils.validateEntity(shipuxinxi); shipuxinxiService.updateById(shipuxinxi);//全部更新 return R.ok(); } /** * 删除美食食谱 */ @RequestMapping("/delete") public R delete(@RequestBody Long[] ids){ shipuxinxiService.deleteBatchIds(Arrays.asList(ids)); return R.ok(); } /** * 美食食谱提醒接口 */ @RequestMapping("/remind/{columnName}/{type}") public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request, @PathVariable("type") String type,@RequestParam Map map) { map.put("column", columnName); map.put("type", type); if(type.equals("2")) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); Calendar c = Calendar.getInstance(); Date remindStartDate = null; Date remindEndDate = null; if(map.get("remindstart")!=null) { Integer remindStart = Integer.parseInt(map.get("remindstart").toString()); c.setTime(new Date()); c.add(Calendar.DAY_OF_MONTH,remindStart); remindStartDate = c.getTime(); map.put("remindstart", sdf.format(remindStartDate)); } if(map.get("remindend")!=null) { Integer remindEnd = Integer.parseInt(map.get("remindend").toString()); c.setTime(new Date()); c.add(Calendar.DAY_OF_MONTH,remindEnd); remindEndDate = c.getTime(); map.put("remindend", sdf.format(remindEndDate)); } } Wrapper wrapper = new EntityWrapper(); if(map.get("remindstart")!=null) { wrapper.ge(columnName, map.get("remindstart")); } if(map.get("remindend")!=null) { wrapper.le(columnName, map.get("remindend")); } int count = shipuxinxiService.selectCount(wrapper); return R.ok().put("count", count); } /** * 前端智能排序 */ @IgnoreAuth @RequestMapping("/autoSort") public R autoSort(@RequestParam Map params,ShipuxinxiEntity shipuxinxi, HttpServletRequest request,String pre){ EntityWrapper ew = new EntityWrapper(); Map newMap = new HashMap(); Map param = new HashMap(); Iterator it = param.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = it.next(); String key = entry.getKey(); String newKey = entry.getKey(); if (pre.endsWith(".")) { newMap.put(pre + newKey, entry.getValue()); } else if (StringUtils.isEmpty(pre)) { newMap.put(newKey, entry.getValue()); } else { newMap.put(pre + "." + newKey, entry.getValue()); } } params.put("sort", "clicknum"); params.put("order", "desc"); PageUtils page = shipuxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, shipuxinxi), params), params)); return R.ok().put("data", page); }


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3