current position:Home>java campus health system based on springboot+vue+nodejs element

java campus health system based on springboot+vue+nodejs element

2022-09-23 03:11:32QQ55318293

随着计算机技术的发展,Bring social progress from all walks of life to,Informatization is gradually used to the life of people.The traditional model of the campus student health management can't satisfy the modern people's pursuit of life,服务质量、服务速度,Before many websites due to the function、Framework design or wait for a reason,Can't perfect display its characteristic,优势,浪费了很多资源.Using the management system for management,成本大大减小,At the same time can be powerful, thanks to the Internet traffic entrance,And therefore reduce the difficulty to promote.So to design a management system to solve the problem of campus student health management,On the one hand can better visual display system,On the other hand can better adapt to the development of The Times.
请添加图片描述
功能介绍
Campus health system including the doctor management、学生管理、食物禁忌、营养搭配、养生小知识、药品管理、Health management、Physical examination data management、公告管理.
User management including administrators to manage、医生管理、College students' user management.The current national Taiwan university students to register,Permissions set for college students.管理员用户权限设置为管理员.但是在登录的时候使用权限类别进行区分,Administrator user can't through the client log in.同理,The client users cannot login administrators end.
Press release is administrator announcements of health knowledge,Information after the announcement on the client browser view.

This paper first puts forward the background of the development of school health system meaning,然后通过功能性和非功能性分析阐述本系统的需求,然后从功能设计和数据库设计两方面进行系统的设计建模.在技术实现部分采用了Java作为开发后台的编程语言,SpringBoot框架,客户端使用html技术,数据库选择MySQL.最后进行了代码的编写,并说明了实现流程.最终,Through the software testing to verify the functions of the campus health system.综合表明,The campus health system satisfy the basic business of the campus student health management,To help users in time online consulting psychological problems,And provide a platform for health administrator and efficient management model.

请添加图片描述环境需要
1.运行环境:最好是java jdk 1.8,这是目前最稳定的JDK也是被使用最多的JDK版本.
2.IDE环境:IDEA,Eclipse都可以.推荐IDEA;
3.tomcat环境:Tomcat7/Tomcat8/Tomcat9版本均可
4.硬件环境:windows 7/8/10 1G内存以上;或者 Mac OS;
5.数据库:MySql 5.7版本;
6.是否Maven项目:是;
技术栈
后端:Spring+SpringMVC+Mybatis+Springboot
前端:vue+CSS+JavaScript+jQuery+elementui
请添加图片描述

主要功能:
大学生管理.Student users registered、登录.College students in the center of the individual,To modify personal information and user password change,System log out, etc.
医生管理,The administrator input doctor,修改医生信息.At the front desk can see doctor style,Including the introduction of the doctor and personal image information.The doctor through the user name and password login system,管理个人信息.
站内新闻管理.Administrator for on-site management of information,Information stored in the database,Through the front desk to check the site news and information.
The picture is stored in the server side,Database records corresponding to the image links address,In the resource class information preservation can also through the binary to save.This system to reduce the load of the database,The images stored in file format,Both reduced the server database storage,Also improves the speed of the image data transmission.College students after the release of,To manage the data in the management of the,Delete some illegal record.No delete records will be display in the client home page,For other college students view.College students can through the classification of health knowledge search,Different categories corresponding to the knowledge of health.Can also use the keyword search.Health knowledge also has a thumb up and collection function.
更改个人信息:The user can modify personal information after login,To ensure the accuracy of the information users and effectiveness.
疾病信息、食物禁忌、营养搭配、Health small knowledge of all kinds of information management and view.
请添加图片描述
1、管理员账号:abo 密码:abo
2、开发环境为Eclipse/idea,数据库为mysql 使用java语言开发.
3.运行SpringbootSchemaApplication.java 即可打开首页
4.数据库连接src\main\resources\application.yml中修改
5.maven包版本apache-maven-3.3.9.
开发语言:Java
框架:springboot
前端框架:vue.js
JDK版本:JDK1.8+
服务器:tomcat8+
数据库工具:Navicat
开发软件:idea 支持eclipse

请添加图片描述`
/**

  • 登录相关
    */
    @RequestMapping(“users”)
    @RestController
    public class UserController{

    @Autowired
    private UserService userService;

    @Autowired
    private TokenService tokenService;

    /**

    • 登录
      */
      @IgnoreAuth
      @PostMapping(value = “/login”)
      public R login(String username, String password, String captcha, HttpServletRequest request) {
      UserEntity user = userService.selectOne(new EntityWrapper().eq(“username”, username));
      if(user==null || !user.getPassword().equals(password)) {
      return R.error(“账号或密码不正确”);
      }
      String token = tokenService.generateToken(user.getId(),username, “users”, user.getRole());
      return R.ok().put(“token”, token);
      }

    /**

    • 注册
      */
      @IgnoreAuth
      @PostMapping(value = “/register”)
      public R register(@RequestBody UserEntity user){
      // ValidatorUtils.validateEntity(user);
      if(userService.selectOne(new EntityWrapper().eq(“username”, user.getUsername())) !=null) {
      return R.error(“用户已存在”);
      }
      userService.insert(user);
      return R.ok();
      }

    /**

    • 退出
      */
      @GetMapping(value = “logout”)
      public R logout(HttpServletRequest request) {
      request.getSession().invalidate();
      return R.ok(“退出成功”);
      }

    /**

    • 密码重置
      */
      @IgnoreAuth
      @RequestMapping(value = “/resetPass”)
      public R resetPass(String username, HttpServletRequest request){
      UserEntity user = userService.selectOne(new EntityWrapper().eq(“username”, username));
      if(user==null) {
      return R.error(“账号不存在”);
      }
      user.setPassword(“123456”);
      userService.update(user,null);
      return R.ok(“密码已重置为:123456”);
      }

    /**

    • 列表
      */
      @RequestMapping(“/page”)
      public R page(@RequestParam Map<String, Object> params,UserEntity user){
      EntityWrapper ew = new EntityWrapper();
      PageUtils page = userService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.allLike(ew, user), params), params));
      return R.ok().put(“data”, page);
      }

    /**

    • 列表
      */
      @RequestMapping(“/list”)
      public R list( UserEntity user){
      EntityWrapper ew = new EntityWrapper();
      ew.allEq(MPUtil.allEQMapPre( user, “user”));
      return R.ok().put(“data”, userService.selectListView(ew));
      }

    /**

    • 信息
      */
      @RequestMapping(“/info/{id}”)
      public R info(@PathVariable(“id”) String id){
      UserEntity user = userService.selectById(id);
      return R.ok().put(“data”, user);
      }

    /**

    • 获取用户的session用户信息
      */
      @RequestMapping(“/session”)
      public R getCurrUser(HttpServletRequest request){
      Long id = (Long)request.getSession().getAttribute(“userId”);
      UserEntity user = userService.selectById(id);
      return R.ok().put(“data”, user);
      }

    /**

    • 保存
      */
      @PostMapping(“/save”)
      public R save(@RequestBody UserEntity user){
      // ValidatorUtils.validateEntity(user);
      if(userService.selectOne(new EntityWrapper().eq(“username”, user.getUsername())) !=null) {
      return R.error(“用户已存在”);
      }
      userService.insert(user);
      return R.ok();
      }

    /**

    • 修改
      */
      @RequestMapping(“/update”)
      public R update(@RequestBody UserEntity user){
      // ValidatorUtils.validateEntity(user);
      userService.updateById(user);//全部更新
      return R.ok();
      }

    /**

    • 删除
      */
      @RequestMapping(“/delete”)
      public R delete(@RequestBody Long[] ids){
      userService.deleteBatchIds(Arrays.asList(ids));
      return R.ok();
      }
      }
      `
      请添加图片描述
      目录
      1 绪论 1
      1.1课题背景 1
      1.2课题研究现状 1
      1.3初步设计方法与实施方案 2
      1.4本文研究内容 2
      2 系统开发环境 4
      2.1 使用工具简介 4
      2.2 环境配置 4
      2.3 B/S结构简介 4
      2.4 MySQL数据库 5
      2.5 框架介绍 5
      3 系统分析 6
      3.1系统可行性分析 6
      3.1.1经济可行性 6
      3.1.2技术可行性 6
      3.1.3运行可行性 6
      3.2系统现状分析 6
      3.3功能需求分析 7
      3.4系统设计规则与运行环境 8
      3.5系统流程分析 8
      3.5.1操作流程 8
      3.5.2添加信息流程 9
      3.5.3删除信息流程 10
      4 系统设计 11
      4.1系统设计主要功能 11
      4.2数据库设计 11
      4.2.1数据库设计规范 11
      4.2.2 E/R图 11
      4.2.3数据表 12
      5 系统实现 25
      5.1系统功能模块 25
      5.2后台模块 27
      5.2.1管理员功能模块 27
      5.2.2用户功能模块 30
      6 系统测试 33
      6.1功能测试 33
      6.2可用性测试 33
      6.3性能测试 34
      6.4测试结果分析 34
      7结 论 35
      参考文献 36
      致 谢 37

copyright notice
author[QQ55318293],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/266/202209230256127320.html

Random recommended