转桌 台桌状态

This commit is contained in:
2026-03-26 09:53:35 +08:00
parent ab697be8ef
commit e8731e1d4d
3 changed files with 21 additions and 12 deletions

View File

@@ -278,6 +278,13 @@ public class ShopTableServiceImpl extends ServiceImpl<ShopTableMapper, ShopTable
return update(shopTable, new QueryWrapper().eq(ShopTable::getShopId, StpKit.USER.getShopId()).eq(ShopTable::getId, shopTableDTO.getId()));
}
@Override
public Boolean updateStatus(long shopId, Long tableId, String tableCode, String status) {
ShopTable shopTable = new ShopTable();
shopTable.setStatus(status);
return update(shopTable, query().eq(ShopTable::getShopId, shopId).eq(ShopTable::getId, tableId).eq(ShopTable::getTableCode, tableCode));
}
@Override
public Boolean clear(long shopId, ShopTableClearDTO shopTableClearDTO) {
ShopTable shopTable = getOne(new QueryWrapper().eq(ShopTable::getShopId, shopId).eq(ShopTable::getId, shopTableClearDTO.getId()));