文末获取源码

开发环境

项目编号:Java+MySQL ssm275老年人健康饮食管理系统#毕业设计
开发语言:Java
开发工具:IDEA /Eclipse
数据库:MYSQL5.7
应用服务:Tomcat7/Tomcat8
使用框架:ssm+vue

项目介绍

随着时代的发展,人们的生活水平有了直线的提升,相对于的人们对健康也越来越看重,如何能够更好的健康饮食成为了很多人在吃饱吃好的同时追求的另外一种饮食方式,尤其是随着生活水平的提高,“三高”的现象越来越严重,这种生活方式和饮食方法严重的影响了人们的生活水平的提高,为了能够更好的能人们健康饮食我开发了本系统。
本系统采用了SSM技术,将所有业务模块采用以浏览器交互的模式,选择MySQL作为系统的数据库,开发工具选择eclipse来进行系统的设计。基本实现了老年人健康饮食管理系统应有的主要功能模块,本系统有用户登录,个人中心,用户管理,系统公告管理,饮食搭配管理,饮食类型管理,活动信息管理,活动报名管理,论坛管理,留言板管理,系统管理等内容。

系统截图










关键代码

package com.controller;import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Calendar;
import java.util.Map;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;import com.utils.ValidatorUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.annotation.IgnoreAuth;import com.entity.HuodongxinxiEntity;
import com.entity.view.HuodongxinxiView;import com.service.HuodongxinxiService;
import com.service.TokenService;
import com.utils.PageUtils;
import com.utils.R;
import com.utils.MD5Util;
import com.utils.MPUtil;
import com.utils.CommonUtil;/*** 活动信息* 后端接口* @author * @email * @date 2021-03-03 16:50:30*/
@RestController
@RequestMapping("/huodongxinxi")
public class HuodongxinxiController {@Autowiredprivate HuodongxinxiService huodongxinxiService;/*** 后端列表*/@RequestMapping("/page")public R page(@RequestParam Map<String, Object> params,HuodongxinxiEntity huodongxinxi, HttpServletRequest request){EntityWrapper<HuodongxinxiEntity> ew = new EntityWrapper<HuodongxinxiEntity>();PageUtils page = huodongxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, huodongxinxi), params), params));request.setAttribute("data", page);return R.ok().put("data", page);}/*** 前端列表*/@IgnoreAuth@RequestMapping("/list")public R list(@RequestParam Map<String, Object> params,HuodongxinxiEntity huodongxinxi, HttpServletRequest request){EntityWrapper<HuodongxinxiEntity> ew = new EntityWrapper<HuodongxinxiEntity>();PageUtils page = huodongxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, huodongxinxi), params), params));request.setAttribute("data", page);return R.ok().put("data", page);}/*** 列表*/@RequestMapping("/lists")public R list( HuodongxinxiEntity huodongxinxi){EntityWrapper<HuodongxinxiEntity> ew = new EntityWrapper<HuodongxinxiEntity>();ew.allEq(MPUtil.allEQMapPre( huodongxinxi, "huodongxinxi")); return R.ok().put("data", huodongxinxiService.selectListView(ew));}/*** 查询*/@RequestMapping("/query")public R query(HuodongxinxiEntity huodongxinxi){EntityWrapper< HuodongxinxiEntity> ew = new EntityWrapper< HuodongxinxiEntity>();ew.allEq(MPUtil.allEQMapPre( huodongxinxi, "huodongxinxi")); HuodongxinxiView huodongxinxiView =  huodongxinxiService.selectView(ew);return R.ok("查询活动信息成功").put("data", huodongxinxiView);}/*** 后端详情*/@RequestMapping("/info/{id}")public R info(@PathVariable("id") Long id){HuodongxinxiEntity huodongxinxi = huodongxinxiService.selectById(id);return R.ok().put("data", huodongxinxi);}/*** 前端详情*/@RequestMapping("/detail/{id}")public R detail(@PathVariable("id") Long id){HuodongxinxiEntity huodongxinxi = huodongxinxiService.selectById(id);return R.ok().put("data", huodongxinxi);}/*** 后端保存*/@RequestMapping("/save")public R save(@RequestBody HuodongxinxiEntity huodongxinxi, HttpServletRequest request){huodongxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(huodongxinxi);huodongxinxiService.insert(huodongxinxi);return R.ok();}/*** 前端保存*/@RequestMapping("/add")public R add(@RequestBody HuodongxinxiEntity huodongxinxi, HttpServletRequest request){huodongxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());//ValidatorUtils.validateEntity(huodongxinxi);huodongxinxiService.insert(huodongxinxi);return R.ok();}/*** 修改*/@RequestMapping("/update")public R update(@RequestBody HuodongxinxiEntity huodongxinxi, HttpServletRequest request){//ValidatorUtils.validateEntity(huodongxinxi);huodongxinxiService.updateById(huodongxinxi);//全部更新return R.ok();}/*** 删除*/@RequestMapping("/delete")public R delete(@RequestBody Long[] ids){huodongxinxiService.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<String, Object> 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<HuodongxinxiEntity> wrapper = new EntityWrapper<HuodongxinxiEntity>();if(map.get("remindstart")!=null) {wrapper.ge(columnName, map.get("remindstart"));}if(map.get("remindend")!=null) {wrapper.le(columnName, map.get("remindend"));}int count = huodongxinxiService.selectCount(wrapper);return R.ok().put("count", count);}}

Java+MySQL 基于ssm的老年人健康饮食管理系统#毕业设计相关推荐

  1. Java+MySQL基于SSM的爱心救助车队管理系统的设计与实现 开题 毕业设计

    随着我国国民经济的发展和人文素质的不断提高,越来越多的爱心人士出现在了社会的各种角落之中,其中的哥和爱心人士,组织了一种基于交通和车辆之间的互助的民间组织,这种组织叫做雷锋爱心车队,而且雷锋爱心车队已 ...

  2. Java+MySQL 基于ssm的英语单词学习网站#毕业设计

    文末获取源码 开发环境 项目编号:Java+MySQL ssm274英语单词学习网站#毕业设计 开发语言:Java 开发工具:IDEA /Eclipse 数据库:MYSQL5.7 应用服务:Tomca ...

  3. Java+MySQL基于ssm的大学生心理健康教育管理系统

    文末获取源码 开发环境 项目编号:Java+MySQL ssm240大学生心理健康教育管理系统 开发语言:Java 开发工具:IDEA /Eclipse 数据库:MYSQL5.7 应用服务:Tomca ...

  4. java+mysql基于ssm企业进销存管理系统【计算机毕业设计】

    本系统结合实际的企业需求,通过对员工.货物.客户.进货.销售.库存.报表等信息管理来降低成本.数据共享.合理分配库存等,提升企业的市场竞争力和信息化水平.整个系统从方便快捷.页面友好,用户体验度.安全 ...

  5. Java+MySQL基于ssm的图书馆图书借阅管理系统

    本文介绍了图书馆管理设计方案,该网站采用目前JSP中最流行的SSM框架和Eclipse编辑器.MySQL数据库设计并实现的.网站功能包含系统用户管理.图书管理.用户管理.借书管理.续借管理.违章缴款管 ...

  6. java+mysql基于SSM的大学生兼职信息系统-计算机毕业设计

    开发环境 运行环境: 开发工具:IDEA /Eclipse 数据库:MYSQL5.7 应用服务:Tomcat7/Tomcat8 使用框架:SSM(spring+springMVC+mybatis)+v ...

  7. java+mysql基于ssm的网上订餐外卖管理系统

    项目编号:jsp02ssm网上外卖商城 运行环境: 开发工具:IDEA /ECLIPSE 数据库:MYSQL5.7 应用服务:Tomcat8.5.31 使用框架:Spring+SpringMVC+my ...

  8. Java+MySQL基于ssm的互助救援车队管理系统

    此项目能够更全面的为社会贡献爱心,更及时的帮助求助人,然后在后台完成整个过程最后在通过广播好人好事,在高考爱心送子.养老院奉献爱心等活动更能做到统一化,更有序让注册的私家车主有的放矢,供献爱心.现在社 ...

  9. 基于JAVA老年人健康饮食管理系统计算机毕业设计源码+系统+mysql数据库+lw文档+部署

    基于JAVA老年人健康饮食管理系统计算机毕业设计源码+系统+mysql数据库+lw文档+部署 基于JAVA老年人健康饮食管理系统计算机毕业设计源码+系统+mysql数据库+lw文档+部署 本源码技术栈 ...

最新文章

  1. 26岁创造UNIX,退休后却成为一名飞行员,这位编程界大佬不走寻常路
  2. json模块及其API
  3. base库中的BarrierClosure
  4. linux技术理解,技术|理解 Linux 链接(二)
  5. html5音频文件生成波形图代码,HTML5/D3.js 可视音频波形柱状图
  6. C语言方向键识别和字母识别,c语言中怎样输入和读取方向键
  7. html id怎么设置密码,苹果手机怎么设置id账号和密码或重设密码
  8. JavaScript浅析1——类型
  9. Crashing Balloon ZOJ1003
  10. LabVIEW入门教程
  11. C语言单片机笔试题,c语言面试题集(单片机
  12. 西门子mag6000接线_西门子MAG5000/6000电磁流量计应用及安装
  13. 软件项目中的成本构成及估算方法
  14. Android音视频基础知识
  15. Data Matrix二维码在医疗器械UDI中的应用
  16. 网吧计算机配置特点,揭秘:网吧电脑配置很低,却怎么用也不卡顿,这是为什么呢?...
  17. word两端对齐字的间距太大,怎么办?
  18. 页面级优化——icon图标显示方式
  19. 【王道考研】操作系统 笔记 第二章上 进程调度
  20. 1097: C语言程序设计教程(第三版)课后习题10.4

热门文章

  1. 捕获格力、海尔空调遥控器协议
  2. 微办公时代来临,飞书助你转变办公模式
  3. 【Ubuntu 下 pip 报错】 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) aft
  4. putty 连接服务器协议,putty远程连接服务器教程
  5. Sage X3基础资料
  6. 在线期刊和论文投稿与评审系统
  7. vue工程代码优化:新建utils文件夹统一管理工具函数
  8. Halcon3d 点云计算平面度
  9. 入侵雅虎的黑客竟然如此高调
  10. 重磅!认知智能已来!人工智能将被取代!且看道翰天琼认知智能为您揭秘人工智能和认知智能的区别。