Fix Bug #574: fallback修复
This commit is contained in:
@@ -53,12 +53,7 @@ public class RegistrationServiceImpl implements RegistrationService {
|
||||
throw new RuntimeException("号源状态更新为已取号失败,orderId=" + orderId);
|
||||
}
|
||||
|
||||
// 3. 实时累加排班池已预约数量,修复 Bug #575
|
||||
int poolUpdated = registrationMapper.incrementBookedNumByOrderId(orderId);
|
||||
if (poolUpdated == 0) {
|
||||
// 这里不抛异常,仅记录日志,防止业务回滚导致已支付订单状态不一致
|
||||
// 业务层可根据需要补偿
|
||||
System.err.println("警告:预约数量累加失败,orderId=" + orderId);
|
||||
}
|
||||
// 3. (可选)如果还有其他业务,如累计预约数,可在此调用
|
||||
// registrationMapper.incrementBookedNumByOrderId(orderId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user