摘 要
现在的社会,生活水平越来越高,人们都在寻求心理上的健康,和自己的宠物在一起,建立起了更亲密的关系。在我们周围,宠物逐渐成为了我们的好伙伴。因此,当动物有了疾病,就得去看医生,自古以来,病人都是有尊严的。不管是人,还是动物,都需要一个适合的地方来治病。宠物医院的设立,除了让动物得到基本的治疗之外,更透过科普与防病的方式,来提升整个动物的身体素质。随着智慧医疗的发展,以前的宠物站也在努力改进自己的医疗机构,通过先进的科技手段,将其改造成一家标准化、规范化的医疗机构,从而提高管理效率。为各业务部门提供高质量的服务,便捷、快速的全面改进。因此,建立一个简单、实用、灵活的综合办公软件,可以大大提高工作效率。
该软件是一个以网络为基础,以网络和服务器为基础,具有完善的办公信息处理功能的宠物医院的管理体系。使用跨平台 JAVA语言进行开发,使用 WEB浏览器即可让工作人员使用该软件,并能对该软件进行各种方向的控制,不管是在大的宠物医院,还是在小的宠物诊所里;都可以建立自己的 LAN进行管理,使办公室变得更加便利,降低了不必要的费用支出。采用 MVC设计思路,通过对 springboot类的封装,实现了对用户的逻辑管理;最终,通过 Tomcat服务器实现了 Web站点的发行,并实现了多种应用平台的兼容。
在对普通的宠物医院业务进行了需求分析之后,本文完成了对系统用户,医生介绍,预约挂号,医疗记录等方面的功能。
关键词:Springboot框架;MySQL数据库;ElementUI;Vu
Abstract
In today's society, the standard of living is getting higher and higher, and people are seeking psychological health and establishing closer relationships with their pets. Around us, pets have gradually become our good companions. Therefore, when an animal has a disease, it has to see a doctor, since ancient times, the patient has dignity. Whether people or animals, they need a suitable place to cure diseases. The establishment of the pet hospital, in addition to the animals get basic treatment, but also through the way of science and disease prevention, to improve the physical quality of the whole animal. With the development of smart medical treatment, the former pet stations are also trying to improve their own medical institutions, through advanced scientific and technological means, transforming them into a standardized and standardized medical institutions, so as to improve the management efficiency. To provide high-quality service for all business departments, convenient, fast and comprehensive improvement. Therefore, the establishment of a simple, practical, flexible integrated office software, can greatly improve the work efficiency. The software is a pet hospital management system based on network, network and server, with perfect office information processing function. Use cross-platform JAVA language, use the WEB browser and control the software in various directions, whether in large pet hospitals or small pet clinics; you can establish your own LAN for management, making the office more convenient and reducing unnecessary expenses. Using MVC design idea, the logical management of users is realized by packaging the springboot class; finally, the Web site is distributed through Tomcat server and compatible application platforms. After the demand analysis of ordinary pet hospital business, this paper has completed the functions of system users, doctor introduction, appointment registration, medical records and other aspects.
Keywords:Springboot Framework; MySQL Database; ElementUI; Vue
数据库表设计
数据库里面的数据表存放的就是各种数据记录,我们在进行系统增删改查操作时,其实也是在对应数据表里面进行的增删改查操作,一个好的数据库能够缩短信息处理时间,所以说数据库的设计工作不容小觑,数据库里面设置哪些表,表里面的字段设计以及字段类型和字段长度等信息都要考虑周到才行,比如时间这个字段,它的数据类型就不能是int型,不然在系统操作中就会弹出输入数据格式不符合要求的报错提示[14]。下面简单介绍银行管理系统的一些数据表。
(1)用户(role)数据表,角色的身份权限,见表4-1
表4-1 role表
序号 | 名称 | 类型 | 长度 | 是否主键 | 说明 |
1 | Id | varchar | 10 | 是 | 用户编号 |
2 | Desc | Varchar | 10 | 用户身份 | |
3 | Name | varchar | 30 | 用户姓名 |
(2)角色页数(role_page)数据表,用于存储角色事务的页数,见表4-2
表4-2 role_page表
序号 | 名称 | 类型 | 长度 | 是否主键 | 说明 |
1 | Rp_Id | Number | 10 | 是 | 业务编号 |
2 | Role_id | Number | 10 | 角色编号 | |
3 | Page_id | Number | 30 | 页数 |
(3)标准(standard)数据表,用于存储宠物的标准情况,见表4-3
表4-3 standard表
序号 | 名称 | 类型 | 长度 | 是否主键 | 说明 |
1 | Id | int | 30 | 是 | 编号 |
2 | Age_min | Varchar | 25 | 年龄最小 | |
3 | Age_max | Number | 20 | 年龄最大 |
续表4-3 standard表:
4 | Temp_max | Number | 20 | 温度最大 | |
5 | Weight_min | Number | 20 | 体重最小 | |
6 | Weight_max | Number | 20 | 体重最大 | |
7 | Height_min | Number | 20 | 高度最小 | |
8 | Height_max | Number | 20 | 高度最高 | |
9 | Appetite_min | Number | 20 | 进食量最小 | |
10 | Appetite_max | Number | 20 | 进食量最大 | |
11 | Type | Number | 20 | 种类 |
(4)用户信息(user)数据表,用于存储用户信息,见表4-4
表4-4 user表
序号 | 名称 | 类型 | 长度 | 是否主键 | 说明 |
1 | Id | int | 30 | 是 | 编号 |
2 | Age | Number | 20 | 年龄 | |
3 | Name | varchar | 30 | 姓名 | |
4 | Password | varchar | 30 | 密码 | |
5 | Phone | Number | 20 | 电话 | |
6 | Adress | varchar | 30 | 地址 |
(5)用户角色(user_role)数据表,用于存储用户信息,见表4-5
表4-5 user_role表
序号 | 名称 | 类型 | 长度 | 是否主键 | 说明 |
1 | Ur_Id | Number | 10 | 是 | 业务编号 |
2 | User_id | Number | 10 | 用户编号 | |
3 | Role_id | Number | 30 | 角色编号 |
(6)业务(appointment)数据表,用于业务订单信息,见表4-6
表4-6 appointment表
序号 | 名称 | 类型 | 长度 | 是否主键 | 说明 |
1 | Id | varchar | 30 | 是 | 订单编号 |
2 3 4 5 6 7 8 | pet_id user_id doctor_id app_time info create_time status | bigint bigint bigint datetime varchar datetime int | 20 20 20 20 255 20 20 | 商品名称 宠物编号 医生编号 App时间 信息 创建时间 状态 | |
9 10 | phone address | varchar varchar | 255 255 | 电话 地址 |
(7)诊断(diagnosi)数据表,用于存储宠物诊断接种信息,见表4-7
表4-7 diagnosi表
序号 | 名称 | 类型 | 长度 | 是否主键 | 说明 |
1 | Id | bigint | 20 | 是 | 编号 |
2 3 4 5 6 7 8 | pet_id user_id doctor_id info type status create_time | bigint bigint bigint varchar int int datetime | 20 20 20 255 20 20 20 | 宠物编号 用户编号 医生编号 信息 类型 状态 创建时间 |
- 指南(notice)数据表,用于记录科室信息,见表4-8
表4-8 notice表
序号 | 名称 | 类型 | 长度 | 是否主键 | 说明 |
1 | Id | bigint | 20 | 是 | 编号 |
2 | content | Varchar | 255 | 内容 | |
3 | view_count | bigint | 20 | 计数 | |
4 | create_time | datetime | 20 | 创建时间 |
(9)页数(page)数据表,用于网页系统url的信息,见表4-9
表4-12 page表
序号 | 名称 | 类型 | 长度 | 是否主键 | 说明 |
1 | page_id | int | 20 | 是 | 分页编号 |
2 3 4 5 6 7 8 | parent_id name url level_type level_index delete_flag desc | int varchar Varchar Int int int Varchar | 20 255 255 20 20 1 255 | 父母编号 姓名 链接 水平类型 水平指数 删除 描述 |
(10)宠物(pet)数据表,用于存储用户宠物信息,见表4-10
表4-10 pet表
序号 | 名称 | 类型 | 长度 | 是否主键 | 说明 |
1 2 3 4 5 6 | Id Name Weight Height Type Birthday | Varchar Varchar Number Number Number Date | 110 50 11 20 20 100 | 是 | 编号 姓名 体重 身高 种类 生日 |
(11)宠物信息(pet_daily)数据表,用于存储宠物身体信息,见表4-12
表4-15 workorder表
序号 | 名称 | 类型 | 长度 | 是否主键 | 说明 |
1 | Id | int | 30 | 是 | 编号 |
2 | Pet_id | Varchar | 25 | 宠物编号 | |
3 | User_id | Number | 20 | 用户编号 | |
4 | Temp | Number | 20 | 温度 | |
5 | Weight | Number | 20 | 体重 | |
6 | Height | Number | 20 | 身高 | |
7 | Appetite | Number | 20 | 进食情况 |
第6章 系统测试
6.1 测试目的
没有人能够确保一套完整的程序能够在一次成功的情况下,做到万无一失。试验时要严格仔细,尽量把整个试验环境都考虑进去,以消除各种可能的误差。
通过对软件进行系统测试,可以有效地检测出软件中存在的问题,同时也可以给用户带来一个非常好的操作经验,并且能够保证其运行的安全性【16】。
6.2 测试方法
本课题根据实际需求情况,选择以功能为主要的黑盒测试方法,同时测试是要遵循一定的规则来执行的,而测试用例一般是依据需求或说明书来综合制定的,测试在硬件出厂前是十分重要的一个过程[17],本课题由于时间和精力的关系,选择以实现的功能作为测试要点来进行测试。
6.3 系统测试
用户登录测试: 特定的结果使用如下的表6-1。
表6-1 用户登录测试用例
模块名称 | 测试用例 | 预期结果 | 实际结果 | 是否通过 |
登录模块 | 用户名:001 密码:123 | 弹出错误提示,提示密码错误 | 弹出错误提示,提示密码错误 | 通过 |
登录模块 | 用户名:123 密码:123 | 弹出错误提示,提示用户名错误 | 弹出错误提示,提示用户名错误 | 通过 |
登录模块 | 用户名:001 密码:123 | 管理员登录成功 | 管理员登录成功 | 通过 |
删除分类测试: 特定的结果使用如下的表6-2。
表6-2 删除分类测试用例
模块名称 | 测试用例 | 预期结果 | 实际结果 | 是否通过 |
删除分类模块 | 分类名:最新通知 | 删除成功、页面自动跳转 | 删除成功、页面自动跳转 | 通过 |
修改密码测试: 特定的结果使用如下的表6-3。
表6-3 修改密码测试用例
模块名称 | 测试用例 | 预期结果 | 实际结果 | 是否通过 |
修改密码模块 | 原密码:666 新密码:123 确认密码:123 | 弹出错误提示,提示原密码错误 | 弹出错误提示,提示原密码错误 | 通过 |
修改密码模块 | 原密码:001 新密码:123 确认密码:333 | 弹出错误提示,提示确认密码不一致 | 弹出错误提示,提示确认密码不一致 | 通过 |
修改密码模块 | 原密码:666 新密码:123 确认密码:123 | 密码修改成功 | 密码修改成功 | 通过 |
6.4 测试结论
系统经过功能测试,基本功能稳定可靠,包括内部功能和界面设计均表现出色,值得推广宣传。用户体验优秀,操作流畅便捷;界面清晰简洁,易于上手使用。系统性能卓越稳定,满足日常管理需求;功能完善丰富,提升工作效率。综合评估显示系统具备较高的实用性和用户友好性,在推广过程中将为用户带来更多便利与价值。欢迎更多人尝试体验并分享这一优秀管理系统的便利与魅力。