整理测试生命周期验收后注释
明确继续接收边界、时间模型及测试整体删除无痕例外。
| | |
| | | /** 原子暂停接收:停止测试数据请求并保留最后实时快照。 */ |
| | | int pauseReception(Long testId, Long operatorId, String updateBy); |
| | | |
| | | /** 原子继续接收:恢复测试数据请求。 */ |
| | | /** 原子继续接收:恢复测试数据请求,仅追加新成功接收的数据,不补采暂停期间历史。 */ |
| | | int resumeReception(Long testId, Long operatorId, String updateBy); |
| | | |
| | | /** 原子停止测试:停止数据请求并进入不可恢复终态。 */ |
| | | int stopTest(Long testId, Long operatorId, String updateBy); |
| | | |
| | | /** 仅删除未开始接收的测试并追加审计记录。 */ |
| | | /** 仅物理删除未开始接收的待测试记录;测试整体删除不写审计或修订记录。 */ |
| | | int deleteTestByIds(Long[] testIds, Long operatorId, String updateBy); |
| | | |
| | | /** 查询指定测试已持久化的结果记录。 */ |
| | |
| | | catch (IllegalArgumentException ignored) { continue; } |
| | | for (BtsHistoryRecord record : records) |
| | | { |
| | | // 模拟器保留通道历史;只接收本次测试开始后产生的设备时间记录,避免顺序测试串入旧事实。 |
| | | // 设备时间隔离顺序测试,服务器接收边界排除暂停期间历史;两种时间不可交叉比较。 |
| | | if (startedAt != null && record.deviceTime().isBefore(startedAt.toInstant())) continue; |
| | | if (test.getReceptionBoundaryAtUtc() != null && record.serverReceivedAt() != null |
| | | && record.serverReceivedAt().isBefore(test.getReceptionBoundaryAtUtc().toInstant())) continue; |