历史订单查询-未完成

This commit is contained in:
bunny 2024-01-10 18:20:20 +08:00
parent cf015bbe60
commit d72592000d
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class ShoppingCartServiceImplImpl implements ShoppingCartService {
public void addShoppingCart(ShoppingCartDTO shoppingCartDTO) {
ShoppingCart shoppingCart = new ShoppingCart();
BeanUtils.copyProperties(shoppingCartDTO, shoppingCart);
// 获取当前id
// 获取当前 id
Long userId = BaseContext.getCurrentId();
shoppingCart.setUserId(userId);
// 判断当前插入的购物车商品是否存在