作者:IT跃迁谷毕设展
个人简介:曾长期从事计算机专业培训教学,本人也热爱上课教学,语言擅长Java、微信小程序、Python、Golang、安卓Android等。平常会做一些项目定制化开发、代码讲解、答辩教学、文档编写、也懂一些降重方面的技巧。平常喜欢分享一些自己开发中遇到的问题的解决办法,也喜欢交流技术,大家有技术代码这一块的问题可以问我!
想说的话:感谢大家的关注与支持!
Java实战项目集
微信小程序实战项目集
Python实战项目集
安卓Android实战项目集
随着中国社会经济的快速发展,民众的生活质量不断提高,互联网一直在改变着人们的生活,包括衣食住行方便都在被互联网所渗透。现代生活中,人们为了缓解生活中的精神疲惫,常常选择通过美食来放松身心。随着各地美食的普及程度的提高,意味着人们的生活水平质量不断的在提高。美食不仅会带给我们视觉的享受,同时还会带来身心的一个满足。以往得知好吃的美食大多都是通过周围朋友的口述评价等,这样得知的形式过于狭义,获取的渠道也十分有限。另外,由于每一个人的口味差异的不同,大家无法得知其他人对美食的评价。此时就需要通过一个媒介收集大家不同感受并公开于众,有了更多的声音,才能更好的去对美食做一个系统的推荐。并且擅长的人可以有他们相应的菜谱,分享出来,也便于美食传播各地交流。
由此开发一个美食菜谱食谱小程序。
开发语言:Java
数据库:MySQL
系统架构:B/S
后端框架:SpringBoot(Spring+SpringMVC+Mybatis) / SSM(Spring+SpringMVC+Mybatis)
前端:微信小程序+uniapp+vue
/* * @Remark:美食菜谱食谱小程序-美食管理 * @Author:IT跃迁谷毕设展 */ @Controller @RequestMapping("/food") public class FoodController { private String prefix = "/user/"; @Resource private FoodMapper foodMapper; @Resource private CategoryMapper categoryMapper; @Resource private CollectMapper collectMapper; @Resource private RecipesItemMapper recipesItemMapper; // 美食详情 @RequestMapping("/shop.html") public String shopHtml (@RequestParam("id") int id, HttpSession session, Model model) { User user = (User) session.getAttribute(SessionConstant.KEY_USER); Food food = foodMapper.selectByPrimaryKey(id); List<Category> categoryList = categoryMapper.selectListByAll(); List<Food> foodList = foodMapper.selectListByCollectCount(10); Collect collect = collectMapper.selectByFoodIdAndUserId(id, user.getId()); // 访问量 + 1 food.setReadCount(food.getReadCount() + 1); foodMapper.updateByPrimaryKeySelective(food); model.addAttribute("food", food); model.addAttribute("categoryList", categoryList); model.addAttribute("foodList", foodList); model.addAttribute("collect", collect); return prefix + "food"; } // 搜索 @RequestMapping("/search.html") public String searchHtml (@RequestParam(value = "categoryId", required = false) Integer categoryId, @RequestParam(value = "search") String search, Model model){ List<Category> categoryList = categoryMapper.selectListByAll(); List<Food> foodList = foodMapper.selectListBySearch(categoryId, search); model.addAttribute("foodList", foodList); model.addAttribute("categoryList", categoryList); return prefix + "search"; } // 动态加载数据 @ResponseBody @RequestMapping("/load/data") public RespResult loadData (@RequestParam(value = "recipesId", required = false) Integer recipesId, HttpSession session) { RespResult respResult = new RespResult(); User user = (User) session.getAttribute(SessionConstant.KEY_USER); List<Food> foodList = foodMapper.selectListByUserId(user.getId()); if (recipesId == null) { respResult.success(foodList); } else { List<RecipesItem> recipesItemList = recipesItemMapper.selectListByRecipesId(recipesId); List<Integer> foodIds = new ArrayList<>(); for (RecipesItem recipesItem : recipesItemList) { foodIds.add(recipesItem.getFoodId()); } Map<String, Object> data = new HashMap<>(); data.put("foodList", foodList); data.put("foodIds", foodIds); respResult.success(data); } return respResult; } } 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
/* * @Remark:美食菜谱食谱小程序-美食管理 * @Author:IT跃迁谷毕设展 */ public interface FoodService { int deleteByPrimaryKey(Integer id); int insert(Food record); int insertSelective(Food record); Food selectByPrimaryKey(Integer id); int updateByPrimaryKeySelective(Food record); int updateByPrimaryKey(Food record); List<Food> selectListByPaging(@Param("page") Integer page, @Param("limit") Integer limit, @Param("name") String name, @Param("categoryId") Integer categoryId); int selectCountByPaging(@Param("name") String name, @Param("categoryId") Integer categoryId); List<Food> selectListByCollectCount(Integer limit); List<Food> selectListByReadCount(Integer limit); List<Food> selectListByLimit(Integer limit); void updateAddCollectCount(Integer id); void updateDelCollectCount(Integer id); List<Food> selectListByUserId(Integer userId); List<Food> selectListBySearch(@Param("categoryId") Integer categoryId, @Param("search") String search); } 1234567891011121314151617181920212223242526272829303132333435363738394041
/* * @Remark:美食菜谱食谱小程序-美食管理 * @Author:IT跃迁谷毕设展 */ public interface FoodMapper { int deleteByPrimaryKey(Integer id); int insert(Food record); int insertSelective(Food record); Food selectByPrimaryKey(Integer id); int updateByPrimaryKeySelective(Food record); int updateByPrimaryKey(Food record); List<Food> selectListByPaging(@Param("page") Integer page, @Param("limit") Integer limit, @Param("name") String name, @Param("categoryId") Integer categoryId); int selectCountByPaging(@Param("name") String name, @Param("categoryId") Integer categoryId); List<Food> selectListByCollectCount(Integer limit); List<Food> selectListByReadCount(Integer limit); List<Food> selectListByLimit(Integer limit); void updateAddCollectCount(Integer id); void updateDelCollectCount(Integer id); List<Food> selectListByUserId(Integer userId); List<Food> selectListBySearch(@Param("categoryId") Integer categoryId, @Param("search") String search); } 1234567891011121314151617181920212223242526272829303132333435363738394041
Java实战项目集
微信小程序实战项目集
Python实战项目集
安卓Android实战项目集
如果大家有任何疑虑,欢迎在下方位置详细交流。
相关知识
【25届计算机毕设选题推荐】基于Django花卉商城系统的设计与实现 【附源码+部署+讲解】
基于微信小程序的花店鲜花商城系统(源码+论文)
基于springboot玉米病虫害远程咨询系统的设计与实现
java/php/node.js/python基于微信小程序的校园外卖系统的设计与实现【2024年毕设】
基于SpringBoot的鲜花订购管理系统的设计与实现(源码+LW+调试文档)
基于JAVA馥郁花艺网站mp4计算机毕业设计源码+数据库+lw文档+系统+部署
计算机毕设选题推荐springboot+vue网上鲜花销售系统 鲜花销售商城
基于net的鲜花销售系统
Java 基于 SpringBoot +vue 的线上花店销售系统
全家福养生菜谱
网址: 基于springboot的养生美食菜谱食谱小程序毕设选题推荐 https://m.huajiangbk.com/newsview1321974.html
上一篇: 识花:山月桂 |
下一篇: 【步骤图】白萝卜虫草花养生汤的做 |