当前位置:网站首页>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
    • 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
  • 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
  • Order details

原网站

版权声明
本文为[Disobey the law]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/182/202207011448561960.html