加入购物车修改

This commit is contained in:
SongZhang 2024-09-28 09:15:30 +08:00
parent 96f81b1b69
commit b50e76c04e
1 changed files with 1 additions and 1 deletions

View File

@ -502,7 +502,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
tbCashierCart.setPackFee(product.getPackFee() != null ?
product.getPackFee().multiply(BigDecimal.valueOf(addCartDTO.getNum())) : BigDecimal.ZERO);
}
cashierCartMapper.insert(tbCashierCart);
cashierCartMapper.updateById(tbCashierCart);
}
if (StrUtil.isNotBlank(addCartDTO.getTableId())) {