feat: 台桌状态根据detail表判断
This commit is contained in:
parent
2fb2667b29
commit
f101d85c9e
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue