1.代客下单 台桌状态同时校验detail和购物车数据

This commit is contained in:
2024-08-29 14:29:15 +08:00
parent 1dba8819b9
commit c1df28b929
2 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ public class ShopInfoService {
tbShopTableVO.setStatus("closed");
}else if (tbCashierCartMapper.countTable(tbShopTableVO.getQrcode(), tbShopTableVO.getShopId()) < 1 ||
tbCashierCartMapper.countTableByDetail(tbShopTableVO.getQrcode(), tbShopTableVO.getShopId()) < 1
tbCashierCartMapper.countTableByDetail(tbShopTableVO.getOrderId(), tbShopTableVO.getShopId()) < 1
) {
tbShopTableVO.setStatus("idle");
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()