摘要:
一、业务层实现: ShoppingCartService : public interface ShoppingCartService { public ResultVO addShoppingCart(ShoppingCart cart); public ResultVO listShopping 阅读全文
摘要:
一、流程分析 二、数据库实现 SQL: #根据用户id查询当前用户的购物车信息 SELECT c.*,p.product_name,i.url FROM shopping_cart c INNER JOIN product p INNER JOIN product_img i ON c.produc 阅读全文
摘要:
1.增加状态码信息 ResStatus: public class ResStatus { public static final int OK=10000; public static final int NO=10001; public static final int LOGIN_SUCCES 阅读全文