清台状态不重置
This commit is contained in:
@@ -76,8 +76,8 @@ public class ShopInfoService {
|
|||||||
if (StrUtil.isBlank(tbShopTableVO.getQrcode())) {
|
if (StrUtil.isBlank(tbShopTableVO.getQrcode())) {
|
||||||
tbShopTableVO.setStatus("closed");
|
tbShopTableVO.setStatus("closed");
|
||||||
|
|
||||||
}else if (tbCashierCartMapper.countTable(tbShopTableVO.getQrcode(), tbShopTableVO.getShopId()) < 1 ||
|
}else if ((tbCashierCartMapper.countTable(tbShopTableVO.getQrcode(), tbShopTableVO.getShopId()) < 1 ||
|
||||||
tbCashierCartMapper.countTableByDetail(tbShopTableVO.getOrderId(), tbShopTableVO.getShopId()) < 1
|
tbCashierCartMapper.countTableByDetail(tbShopTableVO.getOrderId(), tbShopTableVO.getShopId()) < 1) && !tbShopTableVO.getStatus().equals(TableStateEnum.CLEANING.getState())
|
||||||
) {
|
) {
|
||||||
tbShopTableVO.setStatus("idle");
|
tbShopTableVO.setStatus("idle");
|
||||||
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
|
||||||
|
|||||||
Reference in New Issue
Block a user