fix<购物车移出问题>
parent
78f1155583
commit
01ecf1a584
|
@ -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<Computer> getCart(Integer user_id) throws Exception {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<a href="/user?action=list">用户列表</a>
|
||||
<a href="/orders?action=all">所有订单</a>
|
||||
</c:if>
|
||||
<a href="/logout">注销登录</a>
|
||||
<a href="/logout">退出</a>
|
||||
|
||||
</c:if>
|
||||
<c:if test="${sessionScope.user == null}">
|
||||
|
|
Reference in New Issue