I
基于微信小程序的预约挂号系统
摘 要
随着社会的发展,社会的方方面面都在利用信息化时代的优势。互联网的优势和普
及使得各种系统的开发成为必需。
本文以实际运用为开发背景,运用软件工程原理和开发方法,它主要是采用 java
语言技术和 mysql 数据库来完成对系统的设计。整个开发过程首先对基于微信小程序的
预约挂号系统进行需求分析,得出预约挂号系统主要功能。接着对基于微信小程序的预
约挂号系统进行总体设计和详细设计。总体设计主要包括小程序功能设计、小程序总体
结构设计、小程序数据结构设计和小程序安全设计等;详细设计主要包括基于微信小程
序的预约挂号系统数据库访问的实现,主要功能模块的具体实现,模块实现关键代码等。
最后对基于微信小程序的预约挂号系统进行了功能测试,并对测试结果进行了分析总结,
得出基于微信小程序的预约挂号系统存在的不足及需要改进的地方,为以后的基于微信
小程序的预约挂号系统维护提供了方便,同时也为今后开发类似小程序提供了借鉴和帮
助。
基于微信小程序的预约挂号系统开发使系统能够更加方便快捷,同时也促使基于微
信小程序的预约挂号系统变的更加系统化、有序化。系统界面较友好,易于操作。
关键词:基于微信小程序的预约挂号系统;java Mysql
2
Abstract
With the development of society, all aspects of society are making use of the
advantages of the information age. The advantages and popularity of the Internet make the
development of various systems necessary.
In this paper, based on the practical application as the development background, using
software engineering principles and development methods, it mainly uses Java language
technology and MySQL database to complete the design of the system. In the whole
development process, firstly, the paper analyzes the needs of the Library Service System
applet, and obtains the main functions of the Library Service System applet. Then the
overall design and detailed design of the Library Service System applet. The overall
design mainly includes the function design of the small program, the overall structure
design of the small program, the data structure design of the small program and the safety
design of the small program, etc.; the detailed design mainly includes the realization of the
database access of the small program of the library service system, the specific realization
of the main function modules, and the key code of the realization of the modules, etc.
Finally, the function of the Library Service System applet is tested, and the test results are
analyzed and summarized. The shortcomings of the Library Service System applet and the
areas that need to be improved are obtained, which provides convenience for the
maintenance of the Library Service System applet in the future, and also provides reference
and help for the development of similar applet in the future.
The development of Library Service System applet makes the system more
convenient and efficient, and also makes the Library Service System applet more
systematic and orderly. The system interface is friendly and easy to operate.
Key words: Library Service System applet; Java MySQL
3
目 录
摘 要.........................................................................................................................................III
Abstract .......................................................................................................................................4
1 系统概述.................................................................................................................................5
1.1 概述...............................................................................................................................5
1.2 课题意义........................................................................................................................5
1.3 主要内容.......................................................................................................................5
2 系统开发环境.........................................................................................................................6
2.1 微信开发者工具 ...........................................................................................................6
2.2 小程序框架以及目录结构介绍 ...................................................................................6
2.3 JAVA 简介 ..........................................................7
2.4 MySQL 数据库 .......................................................7
3 需求分析.................................................................................................................................1
3.1 系统设计目标...............................................................................................................1
3.2 需求分析概述................................................................................................................1
3.3 系统可行性分析...........................................................................................................2
3.4 经济可行性....................................................................................................................3
3.5 操作可行性: ...............................................................................................................3
3.6 系统流程和逻辑............................................................................................................3
4 系统概要设计..........................................................................................................................7
4.1 概述...............................................................................................................................7
4.2 系统结构.......................................................................................................................7
4.3. 数据库设计..................................................................................................................9
4.3.1 数据库实体.........................................................................................................9
4.3.2 数据库设计表...................................................................................................10
5 系统详细设计........................................................................................................................12
5.1 用户前端功能模块......................................................................................................12
5.2 管理员功能界面..........................................................................................................17
6 系统测试...............................................................................................................................21
6.1 测试理论.....................................................................................................................21
6.2 测试方法及用例.........................................................................................................22
6.3 测试结果......................................................................................................................24
结论...........................................................................................................................................25
致 谢.......................................................................................................................................26
5
1 系统概述
1.1 概述
随着信息时代的快速发展,互联网的优势和普及,人们生活水平的不断提高,生
活方式也在不断改变,由于工作时间的繁忙,很多时候身体不适时想咨询医生或者查
看医院、医生信息成为一件困难的事情,很多人会因为不方便或者身体不适感不是很
严重,放弃咨询使得病情加重。基于这个原因,我开发了基于微信小程序的预约挂号
系统,希望可以给更多人带来方便。基于微信小程序的预约挂号系统主要是借助计算
机,通过对基于微信小程序的预约挂号系统管理所需的信息管理,增加用户的选择,
同时也方便广大用户信息的及时查询、修改以及对基于微信小程序的预约挂号系统信
息的及时了解。基于微信小程序的预约挂号系统给用户带来了更多的选择, 该系统通
过和数据库软件协作来满足用户的需求。
1.2 课题意义
如今,随着移动客户端的普及,微信因为其简单、方便,并且用户体验度好,所
以被称为现在聊天沟通的新宠,同时也被应用到更多的医院做宣传推广。截至 2017
年底,微信用户数突破 10 亿,包括银行、证券、快递服务、电子商务、医院、学校
等越来越多的公司在微信平台上推出相应的服务平台,以适应用户新的行为习惯。微
信平台的科研社交网络平台已是势在必行。计算机技术在现代管理中的应用,使计算
机成为人们应用现代技术的重要工具。能够有效的解决学习便捷化的问题,提高效率。
给用户提供最全面、最专业的数据管理信息,帮助他们了解最新详细信息,还有就是
借助微信端,能够更好的满足用户的需求,为用户节省时间以达到省时又高效的目的。
1.3 主要内容
基于微信小程序的预约挂号系统从功能、数据流程、可行性、运行环境进行需求
分析。对基于微信小程序的预约挂号系统的数据库、功能进行了详细设计,分析了主
要界面设计和相关组件设计,基于微信小程序的预约挂号系统的具体实现进行了介绍。
从数据库中获取数据、向数据库中写入数据,实现系统直接对数据库进行各种数据库
查询、插入、删除、更新等操作,在网页中加入动态内容,从而实现微信小程序所需
要的各种基本功能。