目录
显示最近一个月上架的所有图书,方便用户查找最新的图书。

1. 点击【查看】或图书名称链接进入【商品信息查看】页面。
2. 点击【购买】进入【我的购物车】页面。
数据来源于“产品表(tb_ productinfo)”和“产品货架表(tb_sellinfo)”。
序号
查询条件名称
操作运算
表名
字段名
备注
1
状态、库存量、时间
等于(=)、大于(>)、大于等于(>=)和小于等于(<=)
tb_sellinfo
state、stock、time
获得销售信息
2
产品编号
等于(=)
tb_productinfo
productnumber
获得产品信息
“产品表(tb_ productinfo)”和“产品货架表(tb_sellinfo)”通过字段“产品编码(productnumber)”关联。
(1). select * from tb_sellinfo where state='上架' and stock>0 and time between dateadd(mm,-1,getdate()) and getdate() order by time desc
(2). select * from tb_productinfo where productnumber=?
向用户推荐一些反映良好、阅读量多的图书,给用户最好的阅读体验。

1. 点击【查看】或图书名称链接进入【商品信息查看】页面。
2. 点击【购买】进入【我的购物车】页面。
数据来源于“产品表(tb_ productinfo)”和“产品货架表(tb_sellinfo)”。
序号
查询条件名称
操作运算
表名
字段名
备注
1
状态、库存量、推荐
等于(=)、大于(>)
tb_sellinfo
state、stock、groom
获得销售信息
2
产品编号
等于(=)
tb_productinfo
productnumber
获得产品信息
“产品表(tb_ productinfo)”和“产品货架表(tb_sellinfo)”通过字段“产品编码(productnumber)”关联。
(1). select * from tb_sellinfo where groom='yes' and stock>0 and state='上架'
(2). select * from tb_productinfo where productnumber=?
提供一个交流平台,用户可以向卖家提供建议,也可以互相发表体会心得。

点击【发表】将内容保存到数据库,返回原页面显示留言内容。
用户留言内容列表数据来源于“留言表(tb_guest)”。
序号
查询条件名称
操作运算
表名
字段名
备注
1
评论类型、状态
等于(=)
tb_guest
Commenttype、state
select * from tb_guest where commenttype='在线留言' and state='显示' order by time desc
显示用户搜索的结果。

1. 点击【查看】或图书名称链接进入【商品信息查看】页面。
2. 点击【购买】进入【我的购物车】页面。
数据来源于“产品表(tb_ productinfo)”和“产品货架表(tb_sellinfo)”。
序号
查询条件名称
操作运算
表名
字段名
备注
1
状态、库存量、类别
等于(=)、大于(>)
tb_sellinfo
state、stock、sort
根据类别查询
2
产品编号
等于(=)
tb_productinfo
productnumber
获得产品信息
3
产品名称
等于(=)
tb_productinfo
bookname
4
产品编号
等于(=)、大于(>)
tb_sellinfo
productnumber
获得销售信息
“产品表(tb_ productinfo)”和“产品货架表(tb_sellinfo)”通过字段“productnumber”进行关联。
(1). select * from tb_sellinfo where state='上架' and stock>0 and sort=? order by time desc
(2). select * from tb_productinfo where productnumber=?
(3). select * from tb_productinfo where bookname like ?
(4). select * from tb_sellinfo where productnumber=? and stock>0