配置测试环境支付成功回调

This commit is contained in:
谭凯凯 2024-10-11 17:04:32 +08:00 committed by Tankaikai
parent 85c25685ea
commit 339cf1241c
1 changed files with 15 additions and 0 deletions

View File

@ -1901,5 +1901,20 @@ public class OrderService {
.set(TbCashierCart::getStatus, "final")
.set(TbCashierCart::getUpdatedAt, System.currentTimeMillis())
);
if (StrUtil.isBlank(entity.getTableId())) {
return;
}
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
.eq(TbShopTable::getQrcode, entity.getTableId())
.eq(TbShopTable::getAutoClear, 1)
.set(TbShopTable::getStatus, "idle")
.set(TbShopTable::getUpdatedAt, System.currentTimeMillis())
);
mpShopTableMapper.update(null, new LambdaUpdateWrapper<TbShopTable>()
.eq(TbShopTable::getQrcode, entity.getTableId())
.eq(TbShopTable::getAutoClear, 0)
.set(TbShopTable::getStatus, "cleaning")
.set(TbShopTable::getUpdatedAt, System.currentTimeMillis())
);
}
}