当前位置:网站首页>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
边栏推荐
- Ensure production safety! Guangzhou requires hazardous chemical enterprises to "not produce in an unsafe way, and keep constant communication"
- TypeScript:const
- One of the first steps to redis
- Opencv Learning Notes 6 -- image feature [harris+sift]+ feature matching
- 首届技术播客月开播在即
- [stage life summary] I gave up the postgraduate entrance examination and participated in the work. I have successfully graduated and just received my graduation certificate yesterday
- 对于编程思想和能力有重大提升的书有哪些?
- 音乐播放器开发实例(可毕设)
- Basic operations of SQL database
- 关于软件测试的一些思考
猜你喜欢
![[Verilog quick start of Niuke question series] ~ use functions to realize data size conversion](/img/e1/d35e1d382e0e945849010941b219d3.png)
[Verilog quick start of Niuke question series] ~ use functions to realize data size conversion

竣达技术丨室内空气环境监测终端 pm2.5、温湿度TVOC等多参数监测

IDEA全局搜索快捷键(ctrl+shift+F)失效修复
![[leetcode 324] swing sorting II thinking + sorting](/img/cb/26d89e1a1f548b75a5ef9f29eebeee.png)
[leetcode 324] swing sorting II thinking + sorting

微信网页订阅消息实现

The first technology podcast month will be broadcast soon

The first word of JVM -- detailed introduction to JVM and analysis of runtime data area

Opencv Learning Notes 6 -- image mosaic

Written on the first day after Doris graduated
![Opencv Learning Notes 6 -- image feature [harris+sift]+ feature matching](/img/50/5c8adacea78e470c255070c8621ddd.png)
Opencv Learning Notes 6 -- image feature [harris+sift]+ feature matching
随机推荐
idea中新建的XML文件变成普通文件的解决方法.
What is the relationship between network speed, broadband, bandwidth and traffic?
Solid basic structure and array, private / public function, return value and modifier of function, event
C#学习笔记(5)类和继承
TS报错 Don‘t use `object` as a type. The `object` type is currently hard to use
期末琐碎知识点再整理
微服务追踪SQL(支持Isto管控下的gorm查询追踪)
Generate random numbers (4-bit, 6-bit)
Filter &(登录拦截)
Yyds dry goods inventory hcie security day13: firewall dual machine hot standby experiment (I) firewall direct deployment, uplink and downlink connection switches
MongoDB第二话 -- MongoDB高可用集群实现
The data in the database table recursively forms a closed-loop data. How can we get these data
Configuration of ZABBIX API and PHP
Fix the failure of idea global search shortcut (ctrl+shift+f)
opencv学习笔记六--图像特征[harris+SIFT]+特征匹配
NPDP能给产品经理带来什么价值?你都知道了吗?
深度分析数据在内存中的存储形式
leetcode:329. 矩阵中的最长递增路径
DirectX repair tool v4.1 public beta! [easy to understand]
MIT team used graph neural network to accelerate the screening of amorphous polymer electrolytes and promote the development of next-generation lithium battery technology