In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces how Java carries on the realization of the electronic products selling mall system, the content is very detailed, the interested friends can refer to, hope to be helpful to everyone.
Project description: this is an imitating Xiaomi electronic products selling mall system based on SpringBoot+Vue framework. First of all, this is a front-end separation of the project, concise code specification, detailed comments. Secondly, the project is rich in functions and has all the functions of an electronic products selling mall system.
Project function: this project is divided into two roles: ordinary user and administrator. Ordinary users have the functions of logging in, browsing product information, adding shopping carts, settling orders, viewing personal information, viewing personal order details, and so on. The administrator has the functions of managing all product information, managing all order information, managing all user information, viewing revenue data charts and so on.
Application technology: SpringBoot + VueCli + MySQL + MyBatis + Redis + ElementUI
Running environment: IntelliJ IDEA2019.3.5+ MySQL5.7+ Redis5.0.5 + JDK1.8 + Maven3.6.3+ Node14.16.1
Background administrator order management:
@ CrossOrigin@RestController@RequestMapping ("orders") public class OrderController {@ Autowired private OrderServiceImp orderServiceImp; @ Autowired private RegLogServiceImp regLogServiceImp; @ PostMapping ("/ createorder") public OrderResult createOrder (@ RequestBody OrdCreaParm ordCreaParm) throws IOException {OrderResult orderResult = new OrderResult (); orderResult.setStatus (0); OrderList orderList = orderServiceImp.creatOrder (ordCreaParm); orderResult.setData (orderList); return orderResult } @ RequestMapping ("/ getorderlist") public UserOrdListResult getUserOrdList (String username) throws IOException {UserOrdListResult userOrdListResult = new UserOrdListResult (); User user = regLogServiceImp.getUserByUserName (username); String userid = user.getUserid (); List orderList = orderServiceImp.getOrderList (userid); for (UserOrdList userOrdList:orderList) {int orderNo = userOrdList.getOrderNo (); List orderListItems = orderServiceImp.getOrderListItems (orderNo) UserOrdList.setItems (orderListItems);} userOrdListResult.setStatus (0); userOrdListResult.setTotal (orderList.size ()); userOrdListResult.setList (orderList); return userOrdListResult;} / / call the following two methods @ RequestMapping ("/ getorder") public OrdFinaResult getOrder (@ RequestParam ("id") int id) throws IOException {OrdFinaResult orderResult = new OrdFinaResult () OrderResult.setStatus (0); OrdFina orderList = orderServiceImp.getOrderById (id); orderResult.setOrdFina (orderList); return orderResult;} @ RequestMapping ("/ getorderdetail") public OrdFinaResult getOrderDetail (@ RequestParam ("username") String username) throws IOException {User user = regLogServiceImp.getUserByUserName (username); String userid = user.getUserid (); List orderItems = orderServiceImp.getOrderItems (userid); OrdFinaResult orderResult = new OrdFinaResult () OrderResult.setStatus (0); orderResult.setLists (orderItems); return orderResult;}}
Background commodity information management:
@ CrossOrigin@RestController@RequestMapping ("goods") public class GoodController {@ Autowired private GoodServiceImp goodServiceImp; @ RequestMapping ("getGoodsAll") private GoodsAll getGoodByCategory () {GoodsAll goodsAll = new GoodsAll (); ArrayList goodAlls = new ArrayList (); for (int I = 1; I
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.