網上書店系統

2021-07-04 11:30:46 字數 717 閱讀 4348

用到的技術: servlet +jsp+mysql

主要功能:

前台:登入註冊

圖書管理

訂單管理

購物車模組

後台:書分類管理

圖書管理:上傳圖書,修改刪除圖書

訂單管理

遇到的問題:

1,request.getsession().setattribute("cart", bmw);

cart cart = (cart)request.getsession().getattribute("cart");

漏寫了getsession(),就會報錯,異常很隱蔽!!對cart 的操作都會報錯!

2,將method 寫錯,會報錯,必須傳遞method引數

難點:顯示訂單列表,用到多表連線查詢,根據父表查詢子表所有資訊,dao層將map轉成物件

public listfindbyuid(string uid) 

return orderlist;

} catch (sqlexception e)

} private void loadorderitemlist(order order) throws sqlexception

order.setorderitemlist(orderitemlist);

} private orderitem toorderitem(mapmap)

網上書店需求分析

網上書店目錄 part one 系統分析 part two 需求分析 part three 系統管理流程及用例圖 part four 非功能性需求 一 系統分析 1 總體需求 建立對圖書提供全面管理的資訊系統 對所有的圖書 客戶提供全面管理 對圖書詳細資訊提供管理。2 功能需求 在internet,...

用python實現網上書店

需求 1 每個使用者的 購物車 cart 用合適的資料結構快取在記憶體中。2 對每個資料物件的訪問,合理設定並管理快取 使用獨立的模組讀寫資料庫 讓程式結構變得可管理 可維護。3 對每種商品,設定乙個庫存。下訂單就 假設不需要付款 完成需要減庫存。4 將 商品詳情 頁面的 當前庫存 採用 ajax ...

實現網上書店的例子

選擇基本模版 1.建立模型類book public class book public string bookname public string writer public decimal price public datetime time public int amount public vi...