feat: 创建订单修改台桌信息

This commit is contained in:
张松
2024-12-11 11:14:20 +08:00
parent a9ebf37fc5
commit 496df13b1e

View File

@@ -1204,6 +1204,10 @@ public class OrderService {
// 代课下单
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
.eq(TbShopTable::getQrcode, orderInfo.getTableId())
.set(TbShopTable::getProductNum, cashierIds.isEmpty() ? 0 : cashierIds.size())
.set(TbShopTable::getTotalAmount, orderInfo.getOrderAmount())
.set(TbShopTable::getRealAmount, orderInfo.getOrderAmount())
.set(TbShopTable::getUseNum, mealNum)
.set(TbShopTable::getStatus, TableStateEnum.USING.getState()));
// 打印票据