feat: 台桌状态根据detail表判断

This commit is contained in:
张松 2024-11-18 11:45:07 +08:00
parent 2fb2667b29
commit f101d85c9e
1 changed files with 1 additions and 1 deletions

View File

@ -291,7 +291,7 @@ public class TbShopTableServiceImpl implements TbShopTableService {
for (TbShopTable date : tbShopTableList) {
if (StrUtil.isBlank(date.getQrcode())) {
date.setStatus("unbind");
} else if (countMap.get(date.getQrcode()) != null && countMap.get(date.getQrcode()) < 1 && !TableStateEnum.CLEANING.getState().equals(date.getStatus())) {
} else if ((countMap.get(date.getQrcode()) == null || countMap.get(date.getQrcode()) < 1) && !TableStateEnum.CLEANING.getState().equals(date.getStatus())) {
date.setStatus("idle");
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
.eq(TbShopTable::getQrcode, date.getQrcode())