From 01ecf1a5844b3bfd97767fcfbdfa730e4656684b Mon Sep 17 00:00:00 2001 From: liyansheng <1761724207@qq.com> Date: Sat, 21 Dec 2024 20:56:37 +0800 Subject: [PATCH] =?UTF-8?q?fix<=E8=B4=AD=E7=89=A9=E8=BD=A6=E7=A7=BB?= =?UTF-8?q?=E5=87=BA=E9=97=AE=E9=A2=98>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/example/dao/CartDao.java | 2 +- src/main/webapp/index.jsp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/example/dao/CartDao.java b/src/main/java/example/dao/CartDao.java index 46b15b5..f9772c0 100644 --- a/src/main/java/example/dao/CartDao.java +++ b/src/main/java/example/dao/CartDao.java @@ -18,7 +18,7 @@ public class CartDao { // 移除购物车 public int deleteCart(Integer user_id, Integer product_id) throws Exception { String sql = "delete from cart where user_id=? and product_id=?"; - return queryRunner.update(sql, user_id, product_id); + return queryRunner.update(sql, product_id, user_id); } // 某用户的购物车 public List getCart(Integer user_id) throws Exception { diff --git a/src/main/webapp/index.jsp b/src/main/webapp/index.jsp index a079096..0863149 100644 --- a/src/main/webapp/index.jsp +++ b/src/main/webapp/index.jsp @@ -16,7 +16,7 @@ 用户列表 所有订单 - 注销登录 + 退出