代客下单逻辑修改

This commit is contained in:
SongZhang 2024-09-27 10:21:40 +08:00
parent bee3d67106
commit e55c1744ad
1 changed files with 1 additions and 0 deletions

View File

@ -1797,6 +1797,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
cashierCartMapper.update(null, new LambdaUpdateWrapper<TbCashierCart>()
.eq(TbCashierCart::getShopId, choseModelDTO.getShopId())
.in(TbCashierCart::getId, choseModelDTO.getCartIds())
.set(TbCashierCart::getTableId, null)
.set(TbCashierCart::getUseType, choseModelDTO.getUseType()));
return orderDetailMapper.update(null, new LambdaUpdateWrapper<TbOrderDetail>()