当前位置:网站首页>购物商城6.27待完成
购物商城6.27待完成
2022-07-01 14:49:00 【不依法度】
功能反推后端
购物车视图
- 返回一个List<商家>
- 视图1:还有一个List<商品详情全部字段,外加商家ID,商品图片,商品描述,商品单价,是否包运费险>
- 商品详情–商品 连接
- 返回两个List数组的Json格式拼接
订单视图
- 已完成:用户地址视图
- 临时表(逻辑上的):商家基础表,外加订单总价格,优惠阈值线,优惠金额(运费险不参与折扣计算)
- 后端实现
- 对于同一个商家,计算商品详情的总价格,然后拿着(商家ID,总价)去优惠表里面查询出(优惠阈值线,优惠金额)—>DAO中sql,where 总价 >= 阈值 and 商家ID = #{商家ID}, order by 阈值 desc, limit 1
- 然后就可以得到这个Bean类
- 后端实现
- 订单视图1:同购物车中的视图1,不同于购物车视图
- 返回两个List数组的Json格式拼接
商品详情
- 删除掉字段折扣,wwds记得删
- 运费险:如果商家包运费险,显示0(订单右下角的单选框,就默认选中,且无法修改)
- goods的insurance是单件物品,goodsItem的是总和(商品数量*单件商品运费险)
订单
- 运费险:如果打勾,表示统一商家的商品详情的运费总和,不打勾默认为0
- 初始总价:商品详情的总价之和
- 折扣:需要去优惠表里面查询
- 最终总价=初始总价+运费险-折扣
- 订单生成时间:点击完毕确定订单时的时间
- 订单支付时间:支付完成时候的时间
- 生成订单时,将商品详情的订单ID补上–>所以需要修改DAO层,插入订单表中,订单ID也需要,同时需要新增一个方法getMaxId,然后我们生成的这个订单ID就是getMaxId + 1
- 支付成功后,更新商品库存
全部商品
- 跳转到商家首页
商家首页
- 拿全部商品界面改一改就行,wwdsyyds
商家
- 修改商品
- 先getById
- 更新商品表
- 商品详情表中,订单ID为空的,需要修改其运费险/总价
- 上传图片文件,wwds来写
- 插入商品
- 上传图片文件
- 插入商品表
- 删除商品
- 将商品中的价格修改为0
- DAO层,sql语句增加:同步删除掉收藏夹中的/订单ID为空的商品详情(触发器,删除掉购物车里面的)
- 前端实现:价格为0的时候就不展示,已下架
- 修改优惠政策
- 虚拟发货
- 用户已支付订单,确认发货
- 订单列表需要展示的信息
- 视图:商家ID-订单ID(商品详情ID–>获得订单ID,商家ID,二者关联)
- 注销
- (商家首页)
- 商家一个状态flag,表示是否注销,商家首页就可以对应的显示
- 修改商品
用户
- 查看订单状态
历史订单
在运输的订单
- 收藏夹
- 视图:已有视图ViewShowGoods(不分商家),触发器删除所有商品(并不是真的删除)
- 订单详情
- 拿订单生成来改
- 查看订单状态
订单详细
边栏推荐
- Buuctf reinforcement question ezsql
- 【牛客网刷题系列 之 Verilog快速入门】~ 多功能数据处理器、求两个数的差值、使用generate…for语句简化代码、使用子模块实现三输入数的大小比较
- Cannot link redis when redis is enabled
- DirectX修复工具V4.1公测![通俗易懂]
- Day-02 database
- Ensure production safety! Guangzhou requires hazardous chemical enterprises to "not produce in an unsafe way, and keep constant communication"
- Research Report on the development trend and competitive strategy of the global indexable milling cutter industry
- 2022-2-15 learning the imitation Niuke project - post in Section 2
- tensorflow2-savedmodel convert to tflite
- Build your own website (14)
猜你喜欢

Markdown编辑器使用基本语法

首届技术播客月开播在即

炎炎夏日,这份安全用气指南请街坊们收好!

对于编程思想和能力有重大提升的书有哪些?

643. Maximum average number of subarrays I

Details of appium key knowledge

Internet hospital system source code hospital applet source code smart hospital source code online consultation system source code

博文推荐 | 深入研究 Pulsar 中的消息分块

Rearrangement of overloaded operators

2022-2-15 learning xiangniuke project - Section 1 filtering sensitive words
随机推荐
tensorflow2-savedmodel convert to pb(frozen_graph)
Pat 1121 damn single (25 points) set
微服务开发步骤(nacos)
关于重载运算符的再整理
Use the npoi package of net core 6 C to read excel Pictures in xlsx cells and stored to the specified server
sqlilabs less-11~12
Zabbix API与PHP的配置
What problems should be considered for outdoor LED display?
C#学习笔记(5)类和继承
如何看待国企纷纷卸载微软Office改用金山WPS?
Research Report on development trend and competitive strategy of global 4-aminodiphenylamine industry
官宣:Apache Doris 顺利毕业,成为 ASF 顶级项目!
券商万1免5证券开户是合理安全的吗,怎么讲
三十之前一定要明白的职场潜规则
After twists and turns, I finally found the method of SRC vulnerability mining [recommended collection]
【14. 区间和(离散化)】
关于软件测试的一些思考
JVM second conversation -- JVM memory model and garbage collection
It's suitable for people who don't have eloquence. The benefits of joining the China Video partner program are really delicious. One video gets 3 benefits
Research Report on the development trend and competitive strategy of the global axis measurement system industry