1
摘 要
社会和科技的不断进步带来更便利的生活,计算机技术也越来越平民化。二十
一世纪是数据时代,各种信息经过统计分析都可以得到想要的结果,所以也可以更
好的为人们工作、生活服务。二手物品是学校里最常见的物品,把二手物品再次销
售不仅可以节约资源也可以降低经济消费。如果可以把计算机技术和二手商品销售
相结合更符合现代、用户的要求,实现更为方便的购买商品的方式。
本校园二手交易平台采用 Java 语言和 Vue 技术,框架采用 SSM,搭配 Mysql 数
据库,运行在 Idea 里。本系统针对校园二手商品的交易而开发,提供管理员、用户、
商家三种角色的服务。总的功能包括商品的查询、商品的购买、购物车管理和订单
管理。本系统可以帮助管理员审核商品信息和管理用户(商家、普通用户)信息,
帮助用户实现在线的购买方式,并可以实现订单管理。商家可以发布商品和管理销
售订单等。本系统采用成熟技术开发可以完成网上校园二手交易管理的相关工作。
关键词:在线购买;订单管理;Java 语言;Mysql 数据库;购物车管理
2
Abstract
The continuous progress of society and science and technology has brought more
convenient life, and computer technology is becoming more and more civilian. The 21st
century is the data age. All kinds of information can get the desired results through
statistical analysis, so it can also better serve people's work and life. Second hand goods
are the most common goods in schools. Selling second-hand goods again can not only
save resources, but also reduce economic consumption. If we can combine computer
technology with the sale of second-hand goods, it will more meet the requirements of
modern and users, and realize a more convenient way to buy goods.
The second-hand trading platform of the campus adopts Java language and Vue
technology. The framework adopts SSM and MySQL database, which runs in idea. The
system is developed for the transaction of second-hand goods on campus, and provides
services in three roles: administrator, user and merchant. The general functions include
commodity query, commodity purchase, shopping cart management and order
management. This system can help the administrator review the commodity information
and manage the user (merchant, ordinary user) information, help the user realize the
online purchase mode, and can realize the order management. Merchants can release
goods and manage sales orders. The system is developed with mature technology and can
complete the related work of online campus second-hand transaction management.
Keywords: online purchase; Order management; Java language; Mysql database;
Shopping cart management
3
目 录
摘 要..................................................................................................................................1
Abstract................................................................................................................................2
第 1 章 绪论........................................................................................................................6
1.1 课题研究背景与现状 ................................................................................................6
1.2 课题实现目的和研究意义 ........................................................................................6
1.3 课题研究内容 ............................................................................................................7
1.4 论文结构安排 ............................................................................................................7
第 2 章 系统分析................................................................................................................8
2.1 系统开发中使用相关技术介绍 ................................................................................8
2.1.1Java 介绍...............................................................................................................8
2.1.2Mysql 数据库介绍................................................................................................8
2.1.3B/s 架构介绍 ........................................................................................................9
2.1.4 Tomcat 服务器介绍.............................................................................................9
2.1.5Vue 技术介绍 .....................................................................................................10
2.1.6 SSM 框架介绍...................................................................................................10
2.2 系统可行性分析 ......................................................................................................10
2.2.1 经济可行性分析................................................................................................11
2.2.2 操作可行性分析................................................................................................11
2.2.3 技术可行性分析................................................................................................11
2.3 系统需求分析 ..........................................................................................................11
2.4 系统性能分析 ..........................................................................................................12
2.5 系统功能分析 ..........................................................................................................12
2.6 系统操作流程分析 ..................................................................................................14
第 3 章 系统设计..............................................................................................................16
3.1 系统功能结构设计 ..................................................................................................16
3.2 数据库设计 ..............................................................................................................16
3.2.1 数据 ER 图设计.................................................................................................17
3.2.2 数据库表设计....................................................................................................18
4
第 4 章 系统详细实现......................................................................................................24
4.1 用户登录功能的详细实现 ......................................................................................24
4.2 管理员权限的功能实现 ..........................................................................................24
4.2.1 商品求购管理功能的详细实现 ........................................................................24
4.2.2 商品管理功能的详细实现 ................................................................................25
4.2.3 基础数据管理功能的详细实现 ........................................................................25
4.2.4 商家管理功能的实现界面 ................................................................................26
4.2.5 论坛管理功能的实现界面 ................................................................................26
4.2.6 校园新闻管理功能的实现界面 ........................................................................27
4.3 用户权限的功能详细实现 ......................................................................................27
4.3.1 个人资料管理功能的详细界面实现 ................................................................27
4.3.2 商品查询功能的详细实现 ................................................................................28
4.3.3 论坛功能的详细实现........................................................................................28
4.3.4 购物车管理功能的详细实现 ............................................................................29
4.3.5 订单管理功能的详细实现 ................................................................................29
4.3.6 用户注册功能的详细实现 ................................................................................30
4.3.7 商家功能的实现界面........................................................................................31
4.3.8 商品求购功能的实现界面 ................................................................................31
4.4 商家角色功能的实现界面 ......................................................................................32
第 5 章 系统测试..............................................................................................................33
5.1 系统测试的方法与选择 ..........................................................................................33
5.2 测试环境与测试条件 ..............................................................................................33
5.3 详细功能测试 ..........................................................................................................33
5.3.1 用户登录功能的测试........................................................................................33
5.3.2 商品管理功能的测试........................................................................................34
5.3.3 购买功能的测试................................................................................................35
5.3.4 订单管理功能的测试........................................................................................36
5.4 测试总结 ..................................................................................................................36
总 结..................................................................................................................................37