当前位置:网站首页>Shopping mall 6.27 to be completed
Shopping mall 6.27 to be completed
2022-07-01 14:57:00 【Disobey the law】
Function reverses the back end
Shopping cart view
- Return to one List< merchants >
- View 1: One more List< All fields of product details , Plus businesses ID, Commodity images , Commodity Description , item pricing , Whether freight insurance is covered >
- Goods details – goods Connect
- Return to two List Array of Json Format splicing
Order view
- Completed : User address view
- A temporary table ( Logically ): Basic table of merchants , Plus the total order price , Preferential threshold line , Preferential amount ( Freight insurance does not participate in discount calculation )
- The backend implementation
- For the same business , Calculate the total price of the product details , Then take ( merchants ID, The total price ) Go to the discount table and find ( Preferential threshold line , Preferential amount )—>DAO in sql,where The total price >= threshold and merchants ID = #{ merchants ID}, order by threshold desc, limit 1
- And then you get this Bean class
- The backend implementation
- Order view 1: Same as the view in the shopping cart 1, Different from shopping cart view
- Return to two List Array of Json Format splicing
Goods details
- Delete the field discount ,wwds Remember to delete
- Freight insurance : If the merchant covers freight insurance , Show 0( The radio box in the lower right corner of the order , Select by default , And cannot be modified )
- goods Of insurance It's a single item ,goodsItem Is the sum ( The number * Single commodity freight insurance )
Order
- Freight insurance : If checked , Represents the total freight of the unified merchant's commodity details , If you don't check it, you will think 0
- Initial total price : Sum of total price of commodity details
- discount : You need to check the discount form
- Final total price = Initial total price + Freight insurance - discount
- Order generation time : Click Finish Confirm order Time of time
- Order payment time : Time when payment is completed
- When generating an order , Send the order details of the goods ID Fill up –> So it needs to be modified DAO layer , Insert into the order table , Order ID Also needed , At the same time, we need to add a new method getMaxId, Then we generate this order ID Namely getMaxId + 1
- After successful payment , Update merchandise inventory
All goods
- Jump to the business homepage
Business homepage
- Just change the interface of all products ,wwdsyyds
merchants
- Modify the goods
- First getById
- Update product list
- In the commodity details table , Order ID Empty , Need to modify its freight insurance / The total price
- Upload picture file ,wwds To write
- Insert product
- Upload picture file
- Insert item table
- Delete item
- Change the price in the product to 0
- DAO layer ,sql Sentence addition : Synchronously delete... In favorites / Order ID Empty product details ( trigger , Delete the... In the shopping cart )
- The front-end implementation : The price for 0 Don't show when , It's off the shelf
- Modify preferential policies
- Virtual shipping
- The user has paid the order , Confirm delivery
- Information to be displayed in the order list
- View : merchants ID- Order ID( Goods details ID–> Get the order ID, merchants ID, The two are related )
- Cancellation
- ( Business homepage )
- A state of business flag, Indicates whether to log off , The home page of the business can be displayed accordingly
- Modify the goods
user
- Check order status
Historical orders
Orders in transit
- favorites
- View : There are already views ViewShowGoods( Regardless of business ), Trigger deletes all items ( It's not really deleting )
- Order details
- Take order generation to change
- Check order status
Order details
边栏推荐
- 22-06-26周总结
- openssl客户端编程:一个不起眼的函数导致的SSL会话失败问题
- Filter &(登录拦截)
- opencv学习笔记六--图像特征[harris+SIFT]+特征匹配
- tensorflow2-savedmodel convert to pb(frozen_graph)
- [零基础学IoT Pwn] 复现Netgear WNAP320 RCE
- Music player development example (can be set up)
- solidty-基础篇-基础语法和定义函数
- 使用net core 6 c# 的 NPOI 包,读取excel..xlsx单元格内的图片,并存储到指定服务器
- Take you to API development by hand
猜你喜欢
![[15. Interval consolidation]](/img/6c/afc46a0e0d14127d2c234ed9a9d03b.png)
[15. Interval consolidation]
![[getting started with Django] 13 page Association MySQL](/img/78/cbf88ae3c3d311edd7d9af8c985749.jpg)
[getting started with Django] 13 page Association MySQL "multi" field table (check)

Problem note - Oracle 11g uninstall

JVM second conversation -- JVM memory model and garbage collection

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

idea中新建的XML文件变成普通文件的解决方法.
![opencv学习笔记六--图像特征[harris+SIFT]+特征匹配](/img/50/5c8adacea78e470c255070c8621ddd.png)
opencv学习笔记六--图像特征[harris+SIFT]+特征匹配

Microservice development steps (Nacos)

建立自己的网站(14)

JVM performance tuning and practical basic theory part II
随机推荐
qt捕获界面为图片或label显示
Opencv learning notes 5 -- document scanning +ocr character recognition
Mongodb second talk - - mongodb High available Cluster Implementation
openssl客户端编程:一个不起眼的函数导致的SSL会话失败问题
职场太老实,总被欺负怎么办?
关于软件测试的一些思考
Some thoughts on software testing
[leetcode 324] 摆动排序 II 思维+排序
MIT团队使用图神经网络,加速无定形聚合物电解质筛选,促进下一代锂电池技术开发
Basic operations of SQL database
【锁】Redis锁 处理并发 原子性
Opencv Learning Notes 6 -- image mosaic
Music player development example (can be set up)
[Verilog quick start of Niuke question series] ~ use functions to realize data size conversion
炎炎夏日,这份安全用气指南请街坊们收好!
After twists and turns, I finally found the method of SRC vulnerability mining [recommended collection]
使用net core 6 c# 的 NPOI 包,讀取excel..xlsx單元格內的圖片,並存儲到指定服務器
Flink 系例 之 TableAPI & SQL 与 MYSQL 数据查询
关于重载运算符的再整理
Written on the first day after Doris graduated