- 6
- 0
- 约3.74千字
- 约 5页
- 2018-01-04 发布于河南
- 举报
网上书店购物系统需求文档
网上书店购物系统需求文档
写明需求分析文档(200字)、写明系统功能需求(可加入UML的用例图)
1)网上书店购物系统包括了用户模块(其功能模块有:登陆、注销模块、注册模块)、图书管理模块(其功能模块有:显示分类、浏览图书)、购物模块(其功能模块有:加入购物车、查看购物车、结账)
2)功能模块
网上书店是一个典型的基于Web网站的Java EE软件系统,集成了诸多的功能模块,主要包括:
(1)显示图书分类。
(2)用户可以根据分类浏览某一类图书列表。
(3)用户可以查看具体某一本书的简介。
(4)在图书浏览页只要单击【购买】按钮,就可把选定的图书加入购物车中。
(5)用户可以随时单击 ,查看车中已购图书的信息。
(6)已登录的用户可以单击【结账】按钮下订单。
(7)使用需先注册,在注册页填写个人信息,确认有效后成为新用户。
(8)用户在登录页填写用户名和密码,确认正确后才可结账。
功能模块和展现
2 系统设计文档
(500字、至少包含一个主要模块的内容设计)
1)系统数据库设计
包括ER图,数据
创建数据库
网上书店有以下5个实体:用户、图书分类、图书、订单、订单项,因此,本系统的数据库设计,如下图
数据库的初始数据
create table book
(
bookid int auto_increment not null,
catalogid int not null,
bookname varchar(20) not null,
price int not null,
picture varchar(30) not null,
primary key (bookid)
);
create table catalog
(
catalogid int auto_increment not null,
catalogname varchar(20) not null,
primary key (catalogid)
);
create table orderitem
(
orderitemid int auto_increment not null,
bookid int not null,
orderid int not null,
quantity int not null,
primary key (orderitemid)
);
create table orders
(
orderid int auto_increment not null,
userid int not null,
orderdate timestamp not null,
primary key (orderid)
);
create table user
(
userid int auto_increment not null,
username varchar(20) not null,
password varchar(20) not null,
sex varchar(4),
age int,
primary key (userid)
);
alter table book add constraint FK_Relationship_3 foreign key (catalogid)
references catalog (catalogid) on delete restrict on update restrict;
alter table orderitem add constraint FK_Relationship_2 foreign key (orderid)
references orders (orderid) on delete restrict on update restrict;
alter table orderitem add constraint FK_Relationship_4 foreign key (bookid)
reference
您可能关注的文档
最近下载
- 湿法脱硫操作培训课件.ppt VIP
- 云南省2023年《医学综合》专升本真题试卷.docx VIP
- 铁路信号自动闭塞工程配线图表设计—区间组合柜侧面端子配线表设计.pptx
- 新生儿窒息复苏指南.ppt VIP
- 临床护理技术操作并发症的预防与处理规范.pptx
- 智慧交通综合运维管理平台解决方案.pdf VIP
- 2023—2024学年江苏省天一中学高一下学期强化班期末考试数学试卷.doc VIP
- SHT3007-2014 石油化工储运系统罐区设计规范.pdf VIP
- 乡村振兴建设顶层规划建设方案.pptx VIP
- 第一模拟-【中职专用】2025年四川省高等职业院校单独招生文化课考试(中职类)语文模拟卷(原卷版).docx VIP
原创力文档

文档评论(0)