订单超时取消时 同步更改台桌状态

This commit is contained in:
wangw 2025-05-10 10:38:18 +08:00
parent 7280b3e68e
commit c32ecdf871
1 changed files with 1 additions and 0 deletions

View File

@ -835,6 +835,7 @@ public class OrderInfoServiceImpl extends ServiceImpl<OrderInfoMapper, OrderInfo
if (StrUtil.isNotBlank(orderInfo.getTableCode())) {
ShopTable table = shopTableService.getOneByTableCode(orderInfo.getShopId(), orderInfo.getTableCode());
if (table != null) {
table.setStatus(ShopTableStatusEnum.IDLE.getValue());
shopTableService.updateById(table);
}
}