feat: 添加购物车简化修改
This commit is contained in:
parent
aca88711ea
commit
f3da522e80
|
|
@ -468,14 +468,15 @@ public class OrderService {
|
|||
cashierCart.setUuid(uuid);
|
||||
cashierCart.setIsPrint(isPrint);
|
||||
cashierCart.resetTotalAmount();
|
||||
cart = cashierCart;
|
||||
if (product != null) {
|
||||
resetGroupProductCart(groupProductIdList, product, cart);
|
||||
resetGroupProductCart(groupProductIdList, product, cashierCart);
|
||||
}
|
||||
|
||||
mpCashierCartMapper.updateById(cashierCart);
|
||||
}
|
||||
|
||||
setRedisTableCartInfo(tableId, shopId, Collections.singletonList(cart), true);
|
||||
setRedisTableCartInfo(tableId, shopId, Collections.singletonList(cashierCart), true);
|
||||
|
||||
return Result.success(CodeEnum.SUCCESS, masterId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue