Fix Bug #575: fallback修复

This commit is contained in:
2026-05-27 00:35:38 +08:00
parent f864849356
commit 3ebc098f08
2 changed files with 35 additions and 23 deletions

View File

@@ -53,6 +53,10 @@ public class RegistrationServiceImpl implements RegistrationService {
throw new RuntimeException("号源状态更新为已取号失败orderId=" + orderId);
}
// 3. (可选)如果还有其他业务,如累计预约数,可在此继续调用对应 Mapper 方法
// 3. 实时累加预约池的已预约人数,修复 Bug #575
int bookedNumUpdated = registrationMapper.incrementBookedNumByOrderId(orderId);
if (bookedNumUpdated == 0) {
throw new RuntimeException("预约池已预约人数累加失败orderId=" + orderId);
}
}
}