项目介绍
随着信息技术在管理上越来越深入而广泛的应用,管理信息系统的实施在技术上已逐步成熟。本文介绍了儿童预防接种预约微信小程序的开发全过程。通过分析医院挂号信息管理的不足,创建了一个计算机管理医院挂号信息的方案。文章介绍了儿童预防接种预约微信小程序的系统分析部分,包括可行性分析等,系统设计部分主要介绍了系统功能设计和数据库设计。
本儿童预防接种预约微信小程序可以实现管理员和用户。管理员功能有个人中心,用户管理,儿童信息管理,疫苗信息管理,儿童接种管理,儿童接种史管理,医疗机构管理,预约接种管理,系统管理等。用户功能有注册登录,儿童信息,疫苗信息,儿童接种,儿童接种史,医疗机构,预约接种,我的收藏管理等。因而具有一定的实用性。
本站后台采用Java的SSM框架进行后台管理开发,可以在浏览器上登录进行后台数据方面的管理,MySQL作为本地数据库,微信小程序用到了微信开发者工具,充分保证系统的稳定性。系统具有界面清晰、操作简单,功能齐全的特点,使得医院挂号信息管理工作系统化、规范化。
开发环境
编程语言:Java
数据库 :Mysql
系统架构:B/S
后端框架:SSM
编译工具:idea或者eclipse,微信开发者工具,jdk1.8,maven
支持定做:java/php/python/android/小程序vue/爬虫/c#/asp.net
系统实现
5.1 管理员模块的实现
5.1.1 用户信息管理
管理员可以管理用户信息,可以对用户信息进行添加删除修改操作。具体界面的展示如图5.1所示。
图5.1 用户信息管理界面
5.1.2 儿童信息管理
管理员可以对儿童信息进行添加,查询修改,删除操作。具体界面如图5.2所示。
图5.2 儿童信息管理界面
5.1.3 疫苗信息管理
系统管理员可以管理疫苗信息。界面如下图所示:
图5.3 疫苗信息管理界面
5.1.4 儿童接种史管理
系统管理员可以添加,修改,删除儿童接种史。界面如下图所示:
图5.4 儿童接种史管理界面
5.2 小程序模块的实现
5.2.1 系统首页
小程序患者是需要注册才可以进行登录的,登录后的首页界面如下图所示:
图5.5 系统首页
5.2.2 我的菜单
在小程序里点击我的,会出现关于我的界面,在这里可以修改个人信息,以及可以点击其他功能模块。界面如下图所示:
图5.6 我的菜单
5.2.3 接种预约
用户可以提交儿童接种预约信息。界面如下图所示:
图5.6 接种预约页面
核心代码
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.format.annotation.DateTimeFormat;
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.ErtongxinxiEntity;
import com.entity.view.ErtongxinxiView;
import com.service.ErtongxinxiService;
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
*/
@RestController
@RequestMapping("/ertongxinxi")
public class ErtongxinxiController {
@Autowired
private ErtongxinxiService ertongxinxiService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ErtongxinxiEntity ertongxinxi,
HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
ertongxinxi.setZhanghao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<ErtongxinxiEntity> ew = new EntityWrapper<ErtongxinxiEntity>();
PageUtils page = ertongxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, ertongxinxi), params), params));
return R.ok().put("data", page);
}
/**
* 前端列表
*/
@IgnoreAuth
@RequestMapping("st")
public R list(@RequestParam Map<String, Object> params,ErtongxinxiEntity ertongxinxi,
HttpServletRequest request){
EntityWrapper<ErtongxinxiEntity> ew = new EntityWrapper<ErtongxinxiEntity>();
PageUtils page = ertongxinxiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, ertongxinxi), params), params));
return R.ok().put("data", page);
}
/**
* 列表
*/
@RequestMapping("sts")
public R list( ErtongxinxiEntity ertongxinxi){
EntityWrapper<ErtongxinxiEntity> ew = new EntityWrapper<ErtongxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( ertongxinxi, "ertongxinxi"));
return R.ok().put("data", ertongxinxiService.selectListView(ew));
}
/**
* 查询
*/
@RequestMapping("/query")
public R query(ErtongxinxiEntity ertongxinxi){
EntityWrapper< ErtongxinxiEntity> ew = new EntityWrapper< ErtongxinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( ertongxinxi, "ertongxinxi"));
ErtongxinxiView ertongxinxiView = ertongxinxiService.selectView(ew);
return R.ok("查询儿童信息成功").put("data", ertongxinxiView);
}
/**
* 后端详情
*/
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") Long id){
ErtongxinxiEntity ertongxinxi = ertongxinxiService.selectById(id);
return R.ok().put("data", ertongxinxi);
}
/**
* 前端详情
*/
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") Long id){
ErtongxinxiEntity ertongxinxi = ertongxinxiService.selectById(id);
return R.ok().put("data", ertongxinxi);
}
/**
* 后端保存
*/
@RequestMapping("ve")
public R save(@RequestBody ErtongxinxiEntity ertongxinxi, HttpServletRequest request){
ertongxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(ertongxinxi);
ertongxinxiService.insert(ertongxinxi);
return R.ok();
}
/**
* 前端保存
*/
@RequestMapping("/add")
public R add(@RequestBody ErtongxinxiEntity ertongxinxi, HttpServletRequest request){
ertongxinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(ertongxinxi);
ertongxinxiService.insert(ertongxinxi);
return R.ok();
}
/**
* 修改
*/
@RequestMapping("/update")
public R update(@RequestBody ErtongxinxiEntity ertongxinxi, HttpServletRequest request){
//ValidatorUtils.validateEntity(ertongxinxi);
ertongxinxiService.updateById(ertongxinxi);//全部更新
return R.ok();
}
/**
* 删除
*/
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
ertongxinxiService.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<ErtongxinxiEntity> wrapper = new EntityWrapper<ErtongxinxiEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("yonghu")) {
wrapper.eq("zhanghao", (String)request.getSession().getAttribute("username"));
}
int count = ertongxinxiService.selectCount(wrapper);
return R.ok().put("count", count);
}
}
论文参考
目录
1系统概述 1
1.1 研究背景 1
1.2研究目的 1
1.3系统设计思想 1
2相关技术 2
2.1微信小程序 2
2.2 MYSQL数据库 3
2.3 uni-app 3
2.4 Spring Boot框架简介 4
3系统分析 4
3.1可行性分析 4
3.1.1技术可行性 4
3.1.2经济可行性 5
3.1.3操作可行性 5
3.2系统性能分析 5
3.2.1 系统安全性 5
3.2.2 数据完整性 5
3.3系统界面分析 5
3.4系统流程和逻辑 7
4系统概要设计 8
4.1概述 8
4.2系统结构 9
4.3.数据库设计 9
4.3.1数据库实体 9
4.3.2数据库设计表 11
5系统详细实现 16
5.1 管理员模块的实现 16
5.1.1 用户信息管理 16
5.1.2 儿童信息管理 16
5.1.3 疫苗信息管理 17
5.1.4 儿童接种史管理 17
5.2 小程序模块的实现 18
5.2.1 系统首页 18
5.2.2 我的菜单 19
5.2.3 接种预约 20
6系统测试 22
6.1概念和意义 22
6.2特性 22
6.3重要性 23
6.4测试方法 23
6.5 功能测试 23
6.6可用性测试 24
6.7性能测试 24
6.8测试分析 25
6.9测试结果分析 25
结论 25
致谢语 26
参考文献 26