摘 要
近几年来,由于网络的迅速发展和迅速发展,尤其是最近几年,国内的电商交易额持续增长,2013年被誉为“网络金融元年”,使得传统的金融服务网络化的倾向日益显著。随着国家的宏观经济形势的平稳、消费者的消费习惯的形成、银行本身的业务革新以及不断变化的信息技术等因素的影响,网络银行在中国得到了迅速的发展。因此,利用互联网的优势,构建一个高效、便捷、快捷的公共信息服务平台,是银行面对互联网金融市场的激烈竞争的关键所在。伴随着我国的经济和社会的不断发展,金融业逐渐走向完善,人民群众的物质财富日益丰富,商业银行的经营方式也日益多元化。从而使人民对金融服务的要求逐渐增大。
本系统按照 B/S模式,采用 Java技术,选择 MySQL做为后台管理。该系统的功能包括客户聊天管理,词典管理,公告信息管理等功能;金融工具的管理,金融工具的收集管理,金融工具的管理;贷款管理,理财产品的收集和管理;管理理财产品卡,理财卡信息管理,银行卡管理;管理存款,银行卡记录,取款管理;账户管理,用户管理,人员管理等。
本文主要对金融行业的发展背景以及金融行业的发展现状进行了详细的阐述,然后按照软件的传统的研发过程,首先选择了适合的思想和语言软件的开发平台,根据需要分析报告的功能,对数据库结构进行了设计。在此基础上,结合各功能模块,分别对各功能模块进行了详细的分析,编制了各功能模块的流程表及E-R图表。接着进行体系结构的设计和编码,最后完成了体系的功能模块的开发。最后,对整个系统进行了初步的检查,并对其进行了相关的功能验证。实验证明,本设计可以达到预期的功能,且运行状况无显著的瑕疵。
关键词:银行业务;MySQL数据库;需求分析;功能设计
Abstract
In recent years, due to the rapid development and rapid development of the network, especially in recent years, the domestic e-commerce transaction volume continues to grow, 2013 is known as the "first year of network finance", making the tendency of traditional financial service network increasingly significant. With the stability of the country's macroeconomic situation, the formation of consumers' consumption habits, the business innovation of banks themselves and the changing information technology, online banking has developed rapidly in China. Therefore, using the advantages of the Internet to build an efficient, convenient and fast public information service platform is the key for banks to face the fierce competition in the Internet financial market. With the continuous development of China's economy and society, the financial industry is gradually improving, the material wealth of the people is becoming increasingly rich, and the operation mode of commercial banks is becoming increasingly diversified. So that the people's demand for financial services is gradually increased. The system follows B / S mode, adopts Java technology and selects MySQL as the background management. The functions of the system include customer chat management, dictionary management, announcement information management; financial instrument management, collection management, financial instrument management, loan management, financial management collection and management, financial card management, card information management, deposit management, bank card management, bank card records, withdrawal management; account management, user management, personnel management, etc. This paper mainly expounds the development background of the financial industry and the development status of the financial industry. Then, according to the traditional research and development process of software, it first selects the suitable thought and language software development platform, analyzes the functions according to the report, and designs the database structure. On this basis, combined with each functional module, each functional module is analyzed in detail, and the flow table and E-R chart of each functional module are compiled. Then, the design and coding of the architecture, and finally completed the development of the functional module of the system. Finally, the whole system was initially checked and valverified. The experiment proves that the design can achieve the expected function with no significant health defects.
Keywords:banking business; MySQL database; requirements analysis; functional design
目 录
在数据库中,各类数据都存放在表格中,而对其进行添加、删除、修改、查找等工作,都是在对应的表格中完成的。一个有效的资料库设计可以缩短资讯处理的周期,因此资料库的开发就显得尤为重要。您应该认真思考要建立的表格,表格中的字段如何设计,字段类型以及长度。例如,在一个时间域中,它的资料型别不是整型,不然就会有一个错误的讯息,显示资料的格式不合规范。下面是对部分业务表格的简单描述。
表4-1客服聊天表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | yonghu_id | Integer | 提问用户 | 是 |
3 | chat_issue | String | 问题 | 是 |
4 | issue_time | Date | 问题时间 | 是 |
5 | chat_reply | String | 回复 | 是 |
6 | reply_time | Date | 回复时间 | 是 |
7 | zhuangtai_types | Integer | 状态 | 是 |
8 | chat_types | Integer | 数据类型 | 是 |
9 | insert_time | Date | 创建时间 | 是 |
表4-2字典表表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | dic_code | String | 字段 | 是 |
3 | dic_name | String | 字段名 | 是 |
4 | code_index | Integer | 编码 | 是 |
5 | index_name | String | 编码名字 | 是 |
6 | super_id | Integer | 父字段id | 是 |
7 | beizhu | String | 备注 | 是 |
8 | create_time | Date | 创建时间 | 是 |
表4-3公告信息表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | gonggao_name | String | 公告名称 | 是 |
3 | gonggao_photo | String | 公告图片 | 是 |
4 | gonggao_types | Integer | 公告类型 | 是 |
5 | insert_time | Date | 发布时间 | 是 |
6 | gonggao_content | String | 公告详情 | 是 |
7 | create_time | Date | 创建时间 | 是 |
表4-4金融工具表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | jinronggongju_name | String | 产品名称 | 是 |
3 | jinronggongju_uuid_number | String | 金融工具编号 | 是 |
4 | jinronggongju_photo | String | 产品照片 | 是 |
5 | zan_number | Integer | 赞 | 是 |
6 | cai_number | Integer | 踩 | 是 |
7 | jinronggongju_types | Integer | 产品类型 | 是 |
8 | huankuan_number | Integer | 还款天数 | 是 |
9 | jinronggongju_lilv | BigDecimal | 利率 | 是 |
10 | jinronggongju_clicknum | Integer | 金融工具热度 | 是 |
11 | jinronggongju_content | String | 产品介绍 | 是 |
12 | shangxia_types | Integer | 是否上架 | 是 |
13 | jinronggongju_delete | Integer | 逻辑删除 | 是 |
14 | insert_time | Date | 录入时间 | 是 |
15 | create_time | Date | 创建时间 | 是 |
表4-5金融工具收藏表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | jinronggongju_id | Integer | 金融工具 | 是 |
3 | yonghu_id | Integer | 用户 | 是 |
4 | jinronggongju_collection_types | Integer | 类型 | 是 |
5 | insert_time | Date | 收藏时间 | 是 |
6 | create_time | Date | 创建时间 | 是 |
表4-6金融工具银行卡表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | jinronggongju_id | Integer | 金融工具 | 是 |
3 | yonghu_id | Integer | 用户 | 是 |
4 | jinronggongju_commentback_text | String | 银行卡内容 | 是 |
5 | insert_time | Date | 银行卡时间 | 是 |
6 | reply_text | String | 回复内容 | 是 |
7 | update_time | Date | 回复时间 | 是 |
8 | create_time | Date | 创建时间 | 是 |
表4-7借款表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | jinronggongju_order_uuid_number | String | 订单编号 | 是 |
3 | jinronggongju_id | Integer | 金融工具 | 是 |
4 | yonghu_id | Integer | 用户 | 是 |
5 | yinhangka_id | Integer | 银行卡 | 是 |
6 | jinronggongju_order_jiekuanjine | BigDecimal | 借款金额 | 是 |
7 | jinronggongju_order_huankuanjine | BigDecimal | 还款金额 | 是 |
8 | zuiwanhuankuan_time | Date | 最晚还款日期 | 是 |
9 | jinronggongju_order_types | Integer | 订单类型 | 是 |
10 | jinronggongju_order_payment_types | Integer | 支付类型 | 是 |
11 | jinronggongju_order_yesno_types | Integer | 审核状态 | 是 |
12 | jinronggongju_order_yesno_text | String | 审核意见 | 是 |
13 | jinronggongju_order_shenhe_time | Date | 审核时间 | 是 |
14 | insert_time | Date | 订单创建时间 | 是 |
15 | create_time | Date | 创建时间 | 是 |
表4-8理财产品表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | licaichanpin_name | String | 理财产品名称 | 是 |
3 | licaichanpin_uuid_number | String | 理财产品编号 | 是 |
4 | licaichanpin_photo | String | 理财产品照片 | 是 |
5 | zan_number | Integer | 赞 | 是 |
6 | cai_number | Integer | 踩 | 是 |
7 | licaichanpin_types | Integer | 投资类型 | 是 |
8 | fashou_time | Date | 发售时间 | 是 |
9 | licaichanpin_nianshouyi | String | 年收益 | 是 |
10 | licaichanpin_fengxian_types | Integer | 风险等级 | 是 |
11 | licaichanpin_kucun_number | Integer | 剩余份数 | 是 |
12 | licaichanpin_old_money | BigDecimal | 原价/份 | 是 |
13 | licaichanpin_new_money | BigDecimal | 现价/份 | 是 |
14 | licaichanpin_clicknum | Integer | 理财产品热度 | 是 |
15 | licaichanpin_content | String | 理财产品介绍 | 是 |
16 | shangxia_types | Integer | 是否上架 | 是 |
17 | licaichanpin_delete | Integer | 逻辑删除 | 是 |
18 | insert_time | Date | 录入时间 | 是 |
19 | create_time | Date | 创建时间 | 是 |
表4-9理财产品收藏表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | licaichanpin_id | Integer | 理财产品 | 是 |
3 | yonghu_id | Integer | 用户 | 是 |
4 | licaichanpin_collection_types | Integer | 类型 | 是 |
5 | insert_time | Date | 收藏时间 | 是 |
6 | create_time | Date | 创建时间 | 是 |
表4-10理财产品银行卡表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | licaichanpin_id | Integer | 理财产品 | 是 |
3 | yonghu_id | Integer | 用户 | 是 |
4 | licaichanpin_commentback_text | String | 银行卡内容 | 是 |
5 | insert_time | Date | 银行卡时间 | 是 |
6 | reply_text | String | 回复内容 | 是 |
7 | update_time | Date | 回复时间 | 是 |
8 | create_time | Date | 创建时间 | 是 |
表4-11理财银行卡信息表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | licaichanpin_order_uuid_number | String | 订单编号 | 是 |
3 | licaichanpin_id | Integer | 理财产品 | 是 |
4 | yonghu_id | Integer | 用户 | 是 |
5 | yinhangka_id | Integer | 银行卡 | 是 |
6 | buy_number | Integer | 购买份数 | 是 |
7 | licaichanpin_order_true_price | BigDecimal | 实付价格 | 是 |
8 | licaichanpin_order_types | Integer | 订单类型 | 是 |
9 | licaichanpin_order_yesno_types | Integer | 审核状态 | 是 |
10 | licaichanpin_order_yesno_text | String | 审核意见 | 是 |
11 | licaichanpin_order_shenhe_time | Date | 审核时间 | 是 |
12 | licaichanpin_order_payment_types | Integer | 支付类型 | 是 |
13 | insert_time | Date | 订单创建时间 | 是 |
14 | create_time | Date | 创建时间 | 是 |
表4-12银行卡表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | yonghu_id | Integer | 用户 | 是 |
3 | yinhangka_uuid_number | String | 银行卡卡号 | 是 |
4 | yinhangka_photo | String | 银行卡照片 | 是 |
5 | yinhangka_kaikadi | String | 开卡地 | 是 |
6 | yinhang_types | Integer | 银行 | 是 |
7 | yinhangka_types | Integer | 银行卡类型 | 是 |
8 | insert_time | Date | 开卡日期 | 是 |
9 | yinhangka_address | String | 编码 | 是 |
10 | yinhangka_money | BigDecimal | 余额 | 是 |
11 | yinhangka_content | String | 卡片备注 | 是 |
12 | create_time | Date | 创建时间 | 是 |
表4-13存款表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | yinhangka_id | Integer | 银行卡 | 是 |
3 | yinhangka_cunkuan_uuid_number | String | 存款编号 | 是 |
4 | yinhangka_cunkuan_jine | BigDecimal | 存款金额 | 是 |
5 | yinhangka_cunkuan_content | String | 存款备注 | 是 |
6 | insert_time | Date | 存款时间 | 是 |
7 | create_time | Date | 创建时间 | 是 |
表4-14银行卡记录表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | yinhangka_id | Integer | 银行卡 | 是 |
3 | yinhangka_jilu_uuid_number | String | 记录卡号 | 是 |
4 | yinhangka_jilu_types | Integer | 银行卡记录类型 | 是 |
5 | yinhangka_jilu_jine | BigDecimal | 记录金额 | 是 |
6 | yinhangka_jilu_content | String | 详情 | 是 |
7 | insert_time | Date | 记录时间 | 是 |
8 | create_time | Date | 创建时间 | 是 |
表4-15取款表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | yinhangka_id | Integer | 银行卡 | 是 |
3 | yinhangka_qukuan_uuid_number | String | 取款编号 | 是 |
4 | yinhangka_qukuan_jine | BigDecimal | 取款金额 | 是 |
5 | yinhangka_qukuan_content | String | 取款备注 | 是 |
6 | insert_time | Date | 取款时间 | 是 |
7 | create_time | Date | 创建时间 | 是 |
表4-16转账表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | yinhangka_id | Integer | 银行卡 | 是 |
3 | yinhangka_zhuanzhang_uuid_number | String | 转账编号 | 是 |
4 | yinhangka_zhuanzhang_jine | BigDecimal | 转账金额 | 是 |
5 | yinhang_types | Integer | 银行 | 是 |
6 | yinhangka_zhuanzhang_jieshou_kahao | String | 接收卡号 | 是 |
7 | yinhangka_zhuanzhang_content | String | 转账备注 | 是 |
8 | insert_time | Date | 转账时间 | 是 |
9 | create_time | Date | 创建时间 | 是 |
表4-17用户表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | yonghu_uuid_number | String | 用户编号 | 是 |
3 | yonghu_name | String | 用户姓名 | 是 |
4 | yonghu_phone | String | 用户手机号 | 是 |
5 | yonghu_id_number | String | 用户身份证号 | 是 |
6 | yonghu_photo | String | 用户头像 | 是 |
7 | yonghu_email | String | 用户邮箱 | 是 |
8 | zhengxindengji_types | Integer | 征信等级 | 是 |
9 | jinyong_types | Integer | 账户状态 | 是 |
10 | create_time | Date | 创建时间 | 是 |
表4-18员工表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | yuangong_uuid_number | String | 工号 | 是 |
3 | yuangong_name | String | 员工姓名 | 是 |
4 | yuangong_phone | String | 员工手机号 | 是 |
5 | yuangong_id_number | String | 员工身份证号 | 是 |
6 | yuangong_photo | String | 员工头像 | 是 |
7 | yuangong_email | String | 员工邮箱 | 是 |
8 | jinyong_types | Integer | 账户状态 | 是 |
9 | create_time | Date | 创建时间 | 是 |
表4-19管理员表
序号 | 列名 | 数据类型 | 说明 | 允许空 |
1 | Id | Int | id | 否 |
2 | username | String | 员工名 | 是 |
3 | password | String | 密码 | 是 |
4 | role | String | 角色 | 是 |
5 | addtime | Date | 新增时间 | 是 |
第6章 系统测试
系统测试是软件开发过程中的重要阶段,用于验证整个软件系统在满足需求规格的前提下是否符合功能完整、设计要求、性能稳定,并且是否能够在实际环境中正常运行。
6.1 测试目的
该系统的功能测试,是为了检验该系统软件研发的功能是否有问题,该功能本身的设计原则是否是正确的,该系统的软件开发设计是否会有潜在的经营风险问题,在顾客的特定的开发和应用环境以及测试过程中,让用户真正使用并感受到评价,并对试验的成果进行评价,为工程的风险评价、性能试验等方面提供必要的资料。当前,银行业的管理体系分为前端的用户端、后台的用户端的端。当前,后台管理系统的软件主要分为前台和后台管理两部分。前面的目标就是要试验一下该系统的用户如何注册,帐号登录,订单管理的自动化跳跃等。后台管理人员的职责就是对各个控制模块进行每日的数据资料的维修。
6.2 测试环境
本项目提出一种基于黑箱技术的银行管理软件功能测试,该软件主要用于对软件功能进行测试,以确保软件满足功能需求,逻辑上的正确性和功能设计的合理性。在黑箱测试中,我们忽略了系统的内在构造以及执行的详细情况,从而保证了该系统能够正确地工作并且满足期望。系统测试环境如下图表6-1所展示。
表6-1 系统测试环境
测试环境 | 软件环境 | 操作系统 | Windows 10家庭版 |
系统类型 | 64 位操作系统, 基于 x64 的处理器 | ||
浏览器 | Google浏览器 | ||
数据库 | MySQL5.7 | ||
硬件环境 | 设备 | Windows台式电脑机 | |
内存 | 16.00G | ||
硬盘 | 2550G | ||
处理器 | Intel(R) Core(TM) i5-8300H CPU |
6.3 系统测试
最后,本文对该平台的各项基本性能进行了试验,着重于对金融工具信息、金融工具信息和公布信息的检测。只有通过了测试的程序模块,才可以进行系统的软件浏览。对该系统进行了重点的功能检测,目的在于对该系统的各个功能进行检验,保证使用者能够成功地获得并处理有关金融工具的资料和银行所公布的通告。
表6-2 用户登录测试表
测试目的 | 操作流程 | 测试用例 | 测试结果 |
用户登录 | 填写用户名密码,点击首页登录按钮 | 错误填写用户名密码 | 提示错误信息 |
正确填写用户和密码 | 登录成功 |
表6-3新增金融工具信息测试表
新增金融工具信息 | 管理员登陆后点击新增物资按钮,新增金融工具信息 | 金融工具信息为空 | 新增失败,提示请填写内容 |
合规填写金融工具信息 |
表6-4新增银行卡信息测试表
测试项目 | 操作流程 | 测试用例 | 测试结果 |
新增银行卡信息 | 管理员登陆后点击新增银行卡信息按钮,新增银行卡信息 | 银行卡信息为空 | 新增失败,提示请填写内容 |
合规填写银行卡信息 | 新增成功 |
表6-5新增转账测试表
测试项目 | 操作流程 | 测试用例 | 测试结果 |
新增转账 | 管理员登陆后点击新增转账按钮,新增转账 | 转账为空 | 新增失败,提示请填写内容 |
合规填写转账 | 新增成功 |
6.4 测试结果
在对其进行了多次的调试与优化之后,对其进行了多次的调试与改善,使其可以确保该系统在满足市场需要的情况下,具有基本没有差错的特征;较好的适应了软件的发展工艺及用户的要求.在整个设备的整体工作试验中,该系统的软件的功能都比较单一,但是在进行功能性的试验时,却发现了诸如用户的空标、 MySQL的数据库版本不一致等问题,从而使 SQL语句不能正确地执行;此外,系统还会出现管理员使用者名称设置及使用环境辨识等问题,若使用者不正确填写帐号及密码,则会造成登入失败。通常不会出现这样的差错。当执行程式码检验时,会发现管理员资讯与资料库程式码有问题,而且也会出现程式码与资料库的连结问题。在这个测试中,我将更多的精力放在了对我的编码和数据库的处理上,以保证这样的问题不再发生。