添加购物车
This commit is contained in:
parent
ce01726571
commit
4cda885a01
|
@ -64,6 +64,7 @@ public class ShoppingCartServiceImplImpl implements ShoppingCartService {
|
|||
shoppingCart.setImage(setmeal.getImage());
|
||||
shoppingCart.setAmount(setmeal.getPrice());
|
||||
}
|
||||
// 因为都是新增的,所以无论是菜品还是套餐都设为1
|
||||
shoppingCart.setNumber(1);
|
||||
shoppingCart.setCreateTime(LocalDateTime.now());
|
||||
shoppingCartMapper.insert(shoppingCart);
|
||||
|
|
Loading…
Reference in New Issue