当前位置:网站首页>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
边栏推荐
- Use the npoi package of net core 6 C to read excel Pictures in xlsx cells and stored to the specified server
- Opencv learning note 4 -- bank card number recognition
- Chapter 4 of getting started with MySQL: creation, modification and deletion of data tables
- The data in the database table recursively forms a closed-loop data. How can we get these data
- tensorflow2-savedmodel convert to tflite
- Configuration of ZABBIX API and PHP
- Salesforce、约翰霍普金斯、哥大 | ProGen2: 探索蛋白语言模型的边界
- IDEA全局搜索快捷键(ctrl+shift+F)失效修复
- QT capture interface is displayed as picture or label
- After twists and turns, I finally found the method of SRC vulnerability mining [recommended collection]
猜你喜欢

leetcode:329. Longest increasing path in matrix

The data in the database table recursively forms a closed-loop data. How can we get these data

微信公众号订阅消息 wx-open-subscribe 的实现及闭坑指南

Fix the failure of idea global search shortcut (ctrl+shift+f)

skywalking 6.4 分布式链路跟踪 使用笔记
![[零基础学IoT Pwn] 复现Netgear WNAP320 RCE](/img/f7/d683df1d4b1b032164a529d3d94615.png)
[零基础学IoT Pwn] 复现Netgear WNAP320 RCE

JVM performance tuning and practical basic theory part II

竣达技术丨多台精密空调微信云监控方案

Opencv Learning Notes 6 -- image mosaic

The first technology podcast month will be broadcast soon
随机推荐
Written on the first day after Doris graduated
Digital transformation: data visualization enables sales management
一波三折,终于找到src漏洞挖掘的方法了【建议收藏】
Mongodb second call -- implementation of mongodb high availability cluster
使用net core 6 c# 的 NPOI 包,读取excel..xlsx单元格内的图片,并存储到指定服务器
tensorflow2-savedmodel convert to tflite
Solid smart contract development - easy to get started
22-06-26周总结
En utilisant le paquet npoi de net Core 6 c #, lisez Excel.. Image dans la cellule xlsx et stockée sur le serveur spécifié
Reorganize the trivial knowledge points at the end of the term
Blog recommendation | in depth study of message segmentation in pulsar
In hot summer, please put away this safe gas use guide!
建立自己的网站(14)
tensorflow2-savedmodel convert to pb(frozen_graph)
What are the books that have greatly improved the thinking and ability of programming?
Yyds dry goods inventory hcie security day13: firewall dual machine hot standby experiment (I) firewall direct deployment, uplink and downlink connection switches
APK签名原理
opencv学习笔记四--银行卡号识别
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
DirectX repair tool v4.1 public beta! [easy to understand]