摘要: 一、业务层实现: ShoppingCartService : public interface ShoppingCartService { public ResultVO addShoppingCart(ShoppingCart cart); public ResultVO listShopping 阅读全文
posted @ 2022-07-23 16:22 临易 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 一、流程分析 二、数据库实现 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 阅读全文
posted @ 2022-07-23 15:57 临易 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 1.增加状态码信息 ResStatus: public class ResStatus { public static final int OK=10000; public static final int NO=10001; public static final int LOGIN_SUCCES 阅读全文
posted @ 2022-07-23 12:27 临易 阅读(95) 评论(0) 推荐(0) 编辑